From: thomas <thomas@friendlyvillagers.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: [BUG?] Org Mode 20150831, ob-R not working
Date: Wed, 02 Sep 2015 15:19:42 +0200 [thread overview]
Message-ID: <55E6F76E.9090901@friendlyvillagers.com> (raw)
Hi There,
updating from Org Mode 20150713 to 20150831 (Elpa package) gives me an
error at startup:
#+BEGIN_EXAMPLE
Warning (initialization): An error occurred while loading
`/home/thomas/.emacs':
Invalid function: org-babel-header-args-safe-fn
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
#+END_EXAMPLE
And ~emacs --debug-init~ says:
#+BEGIN_EXAMPLE
Debugger entered--Lisp error: (invalid-function
org-babel-header-args-safe-fn)
org-babel-header-args-safe-fn((:cache :colnames :comments :exports
:epilogue :hlines :noeval :noweb :noweb-ref :noweb-sep :padline
:prologue :rownames :sep :session :tangle :wrap (:eval "never" "query")
(:results lambda (str) (not (string-match "file" str))) :width :height
:bg :units :pointsize :antialias :quality :compression :res :type
:family :title :fonts :version :paper :encoding :pagecentre :colormodel
:useDingbats :horizontal))
byte-code("\301\302\303\304\b!#\210\305\306\307\310\311\312\313\314\315\316&
\207" [ob-R-safe-header-args put org-babel-default-header-args:R
safe-local-variable org-babel-header-args-safe-fn
custom-declare-variable org-babel-R-command "R --slave --no-save" "Name
of command to use for executing R code." :group org-babel :version
"24.1" :type string] 10)
require(ob-R)
...
org-babel-do-load-languages(org-babel-load-languages ((awk . t)
(python . t) (sql . t) (asymptote . t) (scheme \.t) (sh . t) (lilypond .
t) (R . t) (ditaa . t) (dot . t) (plantuml . t) (C . t) (java \.t)
(sqlite . t)))
eval-buffer(#<buffer *load*> nil "/home/thomas/.emacs" nil t) ;
Reading at buffer position 3634
load-with-code-conversion("/home/thomas/.emacs" "/home/thomas/.emacs"
t t)
load("~/.emacs" t t)
...
command-line()
normal-top-level()
#+END_EXAMPLE
I'm having a problem with R. In my .emacs I load R like this:
#+BEGIN_SRC emacs-lisp
(require 'ess-site) ;; see
http://orgmode.org/worg/org-tutorials/org-R/org-R.html
(org-babel-do-load-languages 'org-babel-load-languages '((R . t)))
#+END_SRC
If I remove R from babel languages, the Error disappears.
I get the same Error when I require ob-R:
#+BEGIN_SRC emacs-lisp
(require 'ob-R) ;; Invalid function: org-babel-header-args-safe-fn
#+END_SRC
Huh, this is odd! Am I missing something?
If not, how can I revert to 20150713?
Many thanks,
thomas
next reply other threads:[~2015-09-02 13:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 13:19 thomas [this message]
2015-09-02 13:46 ` [BUG?] Org Mode 20150831, ob-R not working Kyle Meyer
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=55E6F76E.9090901@friendlyvillagers.com \
--to=thomas@friendlyvillagers.com \
--cc=emacs-orgmode@gnu.org \
/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).