emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] R code block produces only partial output


From: Andreas Kiermeier
Subject: Re: [O] R code block produces only partial output
Date: Tue, 5 Aug 2014 10:16:37 +0930

Hi Eric,
I'm running Org 8.2.7c (via ELPA) and ESS 14.05.
I've tried to run with a minimal Org setup using only the following in
my init file.
The shortcut I use to start Emacs (on Windows 8.1) is:
C:\emacs\bin\runemacs.exe -Q -l "C:\emacs\bin\minimal-org.el"

However, the results are the same as before. Any thoughts on what else
I could try?

---------
;;; Minimal setup to load latest `org-mode'

;; activate debugging
(setq debug-on-error t
      debug-on-signal nil
      debug-on-quit nil)

;; add latest org-mode to load path
(add-to-list 'load-path (expand-file-name
"C:/Users/andre_000/Documents/.emacs.d/elpa/org-20140804/"))
(add-to-list 'load-path (expand-file-name
"C:/Users/andre_000/Documents/.emacs.d/elpa/ess-20140716.2033/lisp/"))

(require 'ess-site)

(setq org-babel-R-command "C:/Progra~1/R/R-3.1.1/bin/x64/R --slave --no-save")

(org-babel-do-load-languages
 'org-babel-load-languages
 '((emacs-lisp . nil)
   (R . t)))
--------

Thanks,
Andreas
--
Dr Andreas Kiermeier | Director
Statistical Process Improvement Consulting and Training Pty Ltd
Mbl: +61 (4)23 028 565 | Email: address@hidden
Australia


On 4 August 2014 22:40, Eric Schulte <address@hidden> wrote:
> Andreas Kiermeier <address@hidden> writes:
>
>> On 4 August 2014 21:23, Eric Schulte <address@hidden> wrote:
>>> Why are you setting the output type to "graphics" when you are trying to
>>> return text?  I think that may be the source of your problem.
>>
>> Hi Eric,
>> thanks for the quick response.
>> I've had 'graphics' from my main data analysis file ... I think I got
>> that from WORG.
>> I've removed it, reloaded the file, but same outcome.
>> Any other thoughts?
>> Cheers,
>> Andreas
>
> Hi Andreas,
>
> I can't reproduce your problem.  I get the following from your minimal
> example when run in an Org-mode file, and from the command line.  They
> are identical.  Are you using the latest version of Org-mode?
>
> Best,
> Eric
>
>
> $ R
>
> R version 3.1.0 (2014-04-10) -- "Spring Dance"
> Copyright (C) 2014 The R Foundation for Statistical Computing
> Platform: x86_64-unknown-linux-gnu (64-bit)
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
>   Natural language support but running in an English locale
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
> [Previously saved workspace restored]
>
>> x <- rnorm(100)
>> y <- quantile(x, probs=seq(0,1,0.1))
>> names(y) <- 
>> as.character(c("0",".1",".2",".3",".4",".5",".6",".7",".8",".9","1"))
>> y
>           0          .1          .2          .3          .4          .5
> -2.53624773 -1.30846042 -0.70659822 -0.43565010 -0.24318346 -0.01034625
>          .6          .7          .8          .9           1
>  0.24125644  0.49945059  0.92032314  1.36423669  2.83357915
>>
>
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D (see https://u.fsf.org/yw)
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]