From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhihao Ding Subject: Re: insert evaluation results in place Date: Wed, 28 Mar 2018 15:36:54 +0000 Message-ID: References: <3E8A0610-19A8-4531-844E-D1DAD6BDC9D4@ucsd.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000071b9a805687ac784" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1D8N-0006Xo-C3 for emacs-orgmode@gnu.org; Wed, 28 Mar 2018 11:37:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1D8M-0000in-Hu for emacs-orgmode@gnu.org; Wed, 28 Mar 2018 11:37:07 -0400 Received: from mail-pl0-x232.google.com ([2607:f8b0:400e:c01::232]:33296) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f1D8M-0000iS-BL for emacs-orgmode@gnu.org; Wed, 28 Mar 2018 11:37:06 -0400 Received: by mail-pl0-x232.google.com with SMTP id c11-v6so1816952plo.0 for ; Wed, 28 Mar 2018 08:37:06 -0700 (PDT) In-Reply-To: <3E8A0610-19A8-4531-844E-D1DAD6BDC9D4@ucsd.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Berry, Charles" Cc: "emacs-orgmode@gnu.org" --00000000000071b9a805687ac784 Content-Type: text/plain; charset="UTF-8" Thank you! Zhihao On Wed, Mar 28, 2018 at 4:28 PM Berry, Charles wrote: > > > > On Mar 28, 2018, at 7:42 AM, Zhihao Ding wrote: > > > > I was wondering if anyone could share an example for referencing the > results of a source code block in place. > > > > > See > > (info "(org) Evaluating code blocks") > > Example > > > #+Name: put_in_para > #+BEGIN_SRC R :exports none > n_value=10 > n_value > #+END_SRC > > > This is the result: call_put_in_para() of the above. > > HTH, > > Chuck > --00000000000071b9a805687ac784 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you!

Zhihao

<= /div>
On Wed, Mar 28, 2018 a= t 4:28 PM Berry, Charles <ccberry@uc= sd.edu> wrote:


> On Mar 28, 2018, at 7:42 AM, Zhihao Ding <zhihao.ding@gmail.com> wrote:
>
> I was wondering if anyone could share an example for referencing the r= esults of a source code block in place.
>


See

(info "(org) Evaluating code blocks")

Example


#+Name: put_in_para
#+BEGIN_SRC R :exports none
n_value=3D10
n_value
#+END_SRC


This is the result: call_put_in_para() of the above.

HTH,

Chuck
--00000000000071b9a805687ac784--