emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel][R] no return values in R code blocks
@ 2011-08-29 10:49 Max Flöttmann
  2011-08-29 13:38 ` Eric Schulte
  0 siblings, 1 reply; 3+ messages in thread
From: Max Flöttmann @ 2011-08-29 10:49 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 351 bytes --]

Hi,
When i run a code block like this using C-c C-c:

#+BEGIN_SRC R
c(1,23,54,5)
#+END_SRC

I do not get any results.

In older versions of orgmode the result used be a table or vector returned
by R. Is this a bug, or do I need a new keyword that is not in the
documentation yet to get the same result?
I'm using version 7.7 and R2.13.1

Thanks,

Max

[-- Attachment #2: Type: text/html, Size: 615 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [babel][R] no return values in R code blocks
  2011-08-29 10:49 [babel][R] no return values in R code blocks Max Flöttmann
@ 2011-08-29 13:38 ` Eric Schulte
  2011-08-30  6:20   ` Max Flöttmann
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Schulte @ 2011-08-29 13:38 UTC (permalink / raw)
  To: Max Flöttmann; +Cc: emacs-orgmode

Max Flöttmann <max.floettmann@gmail.com> writes:

> Hi,
> When i run a code block like this using C-c C-c:
>
> #+BEGIN_SRC R
> c(1,23,54,5)
> #+END_SRC
>
> I do not get any results.
>
> In older versions of orgmode the result used be a table or vector returned
> by R. Is this a bug, or do I need a new keyword that is not in the
> documentation yet to get the same result?
> I'm using version 7.7 and R2.13.1
>

When I run your example I do get results.

#+BEGIN_SRC R
c(1,23,54,5)
#+END_SRC

#+results:
|  1 |
| 23 |
| 54 |
|  5 |

So maybe the problem is located somewhere in your configuration.  I
would suggest trying with a minimal configuration by launching emacs
with the -Q option, and then only evaluating the bare minimum of a
config sufficient to add R to the list of languages that Babel attempts
to evaluate.

Best -- Eric

>
> Thanks,
>
> Max

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [babel][R] no return values in R code blocks
  2011-08-29 13:38 ` Eric Schulte
@ 2011-08-30  6:20   ` Max Flöttmann
  0 siblings, 0 replies; 3+ messages in thread
From: Max Flöttmann @ 2011-08-30  6:20 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

Hi Eric,
Thanks for the response.
I pulled the newest org version from the repository, mine was a few weeks
old. Now it's returning results correctly.
Cheers,

Max

2011/8/29 Eric Schulte <schulte.eric@gmail.com>

> Max Flöttmann <max.floettmann@gmail.com> writes:
>
> > Hi,
> > When i run a code block like this using C-c C-c:
> >
> > #+BEGIN_SRC R
> > c(1,23,54,5)
> > #+END_SRC
> >
> > I do not get any results.
> >
> > In older versions of orgmode the result used be a table or vector
> returned
> > by R. Is this a bug, or do I need a new keyword that is not in the
> > documentation yet to get the same result?
> > I'm using version 7.7 and R2.13.1
> >
>
> When I run your example I do get results.
>
> #+BEGIN_SRC R
> c(1,23,54,5)
> #+END_SRC
>
> #+results:
> |  1 |
> | 23 |
> | 54 |
> |  5 |
>
> So maybe the problem is located somewhere in your configuration.  I
> would suggest trying with a minimal configuration by launching emacs
> with the -Q option, and then only evaluating the bare minimum of a
> config sufficient to add R to the list of languages that Babel attempts
> to evaluate.
>
> Best -- Eric
>
> >
> > Thanks,
> >
> > Max
>
> --
> Eric Schulte
> http://cs.unm.edu/~eschulte/
>

[-- Attachment #2: Type: text/html, Size: 1914 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-30  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-29 10:49 [babel][R] no return values in R code blocks Max Flöttmann
2011-08-29 13:38 ` Eric Schulte
2011-08-30  6:20   ` Max Flöttmann

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).