emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Issue using [:exports both] for inline R code?
Date: Thu, 06 Mar 2014 10:04:28 -0700	[thread overview]
Message-ID: <87r46fug60.fsf@gmail.com> (raw)
In-Reply-To: CA+M2ft8FJVTq70a8-OL+=qfoe7uQFW9NisBJZ3sJHE_JrmC1Lg@mail.gmail.com

Inline code blocks were provided to allow results of code block
execution to be placed /inline/ within textual elements such as
paragraphs or lists.  They are not designed to support code export.

The manual should be updated to make this limitation clear.

Best,

John Hendy <jw.hendy@gmail.com> writes:

> Here is a minimal example:
>
> #+begin_src example
>
> * Heading
>
> Here is some R code:
>
> src_R[:exports both]{1 + 2 + 3}.
>
> #+end_src
>
> Here is the minimal config I used with `emacs -Q`:
>
> #+begin_src min-config
>
> ;; change as needed
> (add-to-list 'load-path "~/.elisp/org.git/lisp/")
> (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp")
> (add-to-list 'load-path "~/.elisp/site-lisp/ess/lisp/")
>
> (require 'ox-latex)
>
> ;; setup babel languages
> (org-babel-do-load-languages
>  'org-babel-load-languages
>  '((R . t)))
>
> #+end_src
>
> Org version (just pulled):
> Org-mode version 8.2.5h (release_8.2.5h-676-gfb8a04 @
> /home/jwhendy/.elisp/org.git/lisp/)
>
> Upon exporting to latex, I get the attached.
>
> I thought I ran into this some time back, but was able to use a
> :session argument as a workaround in the header args. For some reason,
> I can't seem to get that to play along at the moment. When I try
> adding `:session r`, I get this in the *Messages* buffer:
>
> Warning: defvar ignored because ess-ask-for-ess-directory is let-bound
> org-babel-R-initiate-session: Symbol's function definition is void: R
>
> Any suggestions on what's going on? In a non-minimal setup, I get
> similar results except that `:session R` doesn't complain on export...
> but I get my code bookended by verbatim #+begin/end_src text in the
> PDF.
>
>
>
> Thanks,
> John
>

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

  reply	other threads:[~2014-03-06 22:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-05  3:21 Issue using [:exports both] for inline R code? John Hendy
2014-03-06 17:04 ` Eric Schulte [this message]
2014-03-13 15:03   ` Bastien
2014-03-13 18:23     ` John Hendy
2014-03-13 19:44       ` Bastien
  -- strict thread matches above, loose matches on Subject: below --
2014-03-06 22:31 Issue using [:exports both] for inline R code?: John Hendy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r46fug60.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).