From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: R code block produces only partial output Date: Mon, 04 Aug 2014 09:10:40 -0400 Message-ID: <877g2oz9gv.fsf@gmail.com> References: <87iom8zd24.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEI2d-0002hy-Gg for Emacs-orgmode@gnu.org; Mon, 04 Aug 2014 09:11:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEI2Y-0001da-Na for Emacs-orgmode@gnu.org; Mon, 04 Aug 2014 09:11:07 -0400 Received: from mail-oa0-x230.google.com ([2607:f8b0:4003:c02::230]:38689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEI2Y-0001dV-Ih for Emacs-orgmode@gnu.org; Mon, 04 Aug 2014 09:11:02 -0400 Received: by mail-oa0-f48.google.com with SMTP id m1so4891656oag.7 for ; Mon, 04 Aug 2014 06:11:00 -0700 (PDT) In-Reply-To: (Andreas Kiermeier's message of "Mon, 4 Aug 2014 21:53:31 +0930") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Kiermeier Cc: Emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Andreas Kiermeier writes: > On 4 August 2014 21:23, Eric Schulte 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 --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=r-example.org #+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 --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=r-example-command-line.txt $ 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 > --=-=-= Content-Type: text/plain -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw) --=-=-=--