* [babel] Problems sourcing R code
@ 2009-11-07 19:51 Weiss, Bernd
2009-11-08 19:05 ` Dan Davison
0 siblings, 1 reply; 3+ messages in thread
From: Weiss, Bernd @ 2009-11-07 19:51 UTC (permalink / raw)
To: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear all,
I am having trouble sourcing R code from within an org-file via
org-babel, i.e. I cant' replicate the most simple examples
#+begin_src R :results value
matrix(rnorm(6), nrow=2)
#+end_src
That's the error message I get whenever I type in C-c C-c:
"executing R source code block...
Die Syntax für den Dateinamen, Verzeichnisnamen oder die
Datenträgerbezeichnung ist falsch.
No result returned by source block"
However, I am not having any problems with the shell-example
#+begin_src sh
echo "This file takes up `du -h org-babel.org |sed 's/\([0-9k]*\)[
]*org-babel.org/\1/'`"
#+end_src
Org-R works as expected, i.e. I can source the following example without
any problems
#+RR: x <- c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1))
#+R: title:"continuous-data" output-to-buffer:t
My setup:
- - MS-Win Vista
- - GNU Emacs 23.1.1 (i386-mingw-nt6.0.6002) of 2009-07-30 on SOFT-MJASON
- - Org-mode: Org-mode version 6.32trans (release_6.32b.127.g471c2);
- - ESS: v5.5
- - my .emacs/_emacs-File: <http://metaanalyse.de/tmp/_emacs>
Thanks in advance for your help
Bernd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
iQEcBAEBAgAGBQJK9c+4AAoJEEs3GEaRJz0hpKUH/3HGap0alygyueqkYDGw7yFO
j5B0bl5Vk6iYiHuoPH2DdYM2fIuVyH52hicKXXSUPnGenj3z84UeiNmMi/PELMuE
GqXRYbidmoIfa0u7eOqpB9hoiWnLSdo74ZCmoo3aojn4a/yyx1bNcZ6nqe4ESgJP
qdCO7TNfXniQ114HdLBCGzhNLVpJ1jgcd80sdTZi4pPiUpTUKjpb7MQCsCV6RZY0
pP0ticRiGRinu1sew6laDFOGIs57zhye+E2TLdql9e62hfaF4TddxQFyQPCUCn6+
hiQeZBQ7t5I8wO4ZHTurfx6jrky2u0T1JJV8RfeWgm66aJIwWzoJ/F7ZA9oYuQs=
=uJEV
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [babel] Problems sourcing R code
2009-11-07 19:51 [babel] Problems sourcing R code Weiss, Bernd
@ 2009-11-08 19:05 ` Dan Davison
2009-11-08 19:54 ` Weiss, Bernd
0 siblings, 1 reply; 3+ messages in thread
From: Dan Davison @ 2009-11-08 19:05 UTC (permalink / raw)
To: Weiss, Bernd ; +Cc: emacs-orgmode
"Weiss, Bernd " <bernd.weiss@uni-koeln.de> writes:
> Dear all,
>
> I am having trouble sourcing R code from within an org-file via
> org-babel, i.e. I cant' replicate the most simple examples
>
> #+begin_src R :results value
> matrix(rnorm(6), nrow=2)
> #+end_src
>
> That's the error message I get whenever I type in C-c C-c:
>
> "executing R source code block...
> Die Syntax für den Dateinamen, Verzeichnisnamen oder die
> Datenträgerbezeichnung ist falsch.
> No result returned by source block"
Dear Bernd,
This is a problem relating to running R as an external shell process
under Windows. For the time-being, please use the :session header
argument to specify that evaluation is to take place in a persistent
emacs R session. Alternatively, you could use the following
configuration code to force R blocks to always use the specified session
(you can change the session name of course):
(setq org-babel-default-header-args:R '((:session . "*my-R-session*")))
Session-based evaluation is described briefly at
http://orgmode.org/worg/org-contrib/babel/org-babel.php#basic-functionality
Thanks for the report. We will investigate the issues with running R as
an external process under Windows.
Best wishes,
Dan
>
>
> However, I am not having any problems with the shell-example
>
> #+begin_src sh
> echo "This file takes up `du -h org-babel.org |sed 's/\([0-9k]*\)[
> ]*org-babel.org/\1/'`"
> #+end_src
>
> Org-R works as expected, i.e. I can source the following example without
> any problems
>
> #+RR: x <- c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1))
> #+R: title:"continuous-data" output-to-buffer:t
>
>
> My setup:
> - MS-Win Vista
> - GNU Emacs 23.1.1 (i386-mingw-nt6.0.6002) of 2009-07-30 on SOFT-MJASON
> - Org-mode: Org-mode version 6.32trans (release_6.32b.127.g471c2);
> - ESS: v5.5
> - my .emacs/_emacs-File: <http://metaanalyse.de/tmp/_emacs>
>
>
> Thanks in advance for your help
>
> Bernd
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [babel] Problems sourcing R code
2009-11-08 19:05 ` Dan Davison
@ 2009-11-08 19:54 ` Weiss, Bernd
0 siblings, 0 replies; 3+ messages in thread
From: Weiss, Bernd @ 2009-11-08 19:54 UTC (permalink / raw)
To: Dan Davison; +Cc: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dan Davison schrieb:
> "Weiss, Bernd " <bernd.weiss@uni-koeln.de> writes:
>
>> Dear all,
>>
>> I am having trouble sourcing R code from within an org-file via
>> org-babel, i.e. I cant' replicate the most simple examples
>>
>> #+begin_src R :results value
>> matrix(rnorm(6), nrow=2)
>> #+end_src
>>
>> That's the error message I get whenever I type in C-c C-c:
>>
>> "executing R source code block...
>> Die Syntax für den Dateinamen, Verzeichnisnamen oder die
>> Datenträgerbezeichnung ist falsch.
>> No result returned by source block"
>
> Dear Bernd,
>
> This is a problem relating to running R as an external shell process
> under Windows. For the time-being, please use the :session header
> argument to specify that evaluation is to take place in a persistent
> emacs R session. Alternatively, you could use the following
> configuration code to force R blocks to always use the specified session
> (you can change the session name of course):
>
> (setq org-babel-default-header-args:R '((:session . "*my-R-session*")))
>
> Session-based evaluation is described briefly at
>
> http://orgmode.org/worg/org-contrib/babel/org-babel.php#basic-functionality
>
> Thanks for the report. We will investigate the issues with running R as
> an external process under Windows.
Dear Dan,
that works, thanks a lot!
Bernd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
iQEcBAEBAgAGBQJK9yHxAAoJEEs3GEaRJz0hX2EH/1gcpuPox/411KOmr53tZ7an
p1xr+DR1q8vh9FasQbMUObvcG3uFBKzU3xMgfieTNuM5Zozi7nbFhKqzsqSffn5A
o6SPf07cJligvtJeuqknZlxFJn8ptwzxBMKlJAB1JCr/c7Er7KNlYDV5dhx9SFLw
VPggXfPbOyXyU++dCgrCoCo6BrX4rpneXSfYtU+kQPaH4if0rEF8yMYPpzKtQwjz
hDhO621AjN0BFEaKGNzzuLRF+3EqCCMBO6enTjrXdUfZXi6iF3PaRcKkhzgCMbAP
kC81ljydJ60RCsX5m7ZmL8lKgcdN29WqyyR5ifioaw0V4/ajS+aPl2VDoCqNRqk=
=kt86
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-08 19:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-07 19:51 [babel] Problems sourcing R code Weiss, Bernd
2009-11-08 19:05 ` Dan Davison
2009-11-08 19:54 ` Weiss, Bernd
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.