[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] R code block produces only partial output
From: |
Eric Schulte |
Subject: |
Re: [O] R code block produces only partial output |
Date: |
Mon, 04 Aug 2014 09:10:40 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
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
#+BEGIN_SRC R :results output
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
#+END_SRC
#+RESULTS:
: 0 .1 .2 .3 .4 .5 .6
: -2.5388527 -1.7039145 -1.0586655 -0.4892375 -0.2083433 0.0669765 0.2674644
: .7 .8 .9 1
: 0.6065544 1.0985117 1.5376634 3.2423323
$ 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)
- [O] R code block produces only partial output, Andreas Kiermeier, 2014/08/04
- Re: [O] R code block produces only partial output, Eric Schulte, 2014/08/04
- Re: [O] R code block produces only partial output, Charles Berry, 2014/08/05
- Re: [O] R code block produces only partial output, Eric Schulte, 2014/08/05
- Re: [O] R code block produces only partial output, John Hendy, 2014/08/05
- Re: [O] R code block produces only partial output, Nick Dokos, 2014/08/05
- Re: [O] R code block produces only partial output, Nick Dokos, 2014/08/05
- Re: [O] R code block produces only partial output, Charles C. Berry, 2014/08/05
- Re: [O] R code block produces only partial output, Aaron Ecay, 2014/08/05