From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: org-R tutorial on Worg Date: Thu, 5 Feb 2009 09:58:42 -0500 Message-ID: <20090205145842.GB7611@stats.ox.ac.uk> References: <20090204045907.GA7288@stats.ox.ac.uk> <2c75873c0902041030m769ac77fva64375ca91946fcf@mail.gmail.com> <20090204185425.GE8992@stats.ox.ac.uk> <20090204185626.GF8992@stats.ox.ac.uk> <2c75873c0902050004s7da4353gbc5f2efcfe71253@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LV5gm-00089w-VH for emacs-orgmode@gnu.org; Thu, 05 Feb 2009 09:58:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LV5gl-00087K-E0 for emacs-orgmode@gnu.org; Thu, 05 Feb 2009 09:58:48 -0500 Received: from [199.232.76.173] (port=42233 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LV5gk-00086t-VP for emacs-orgmode@gnu.org; Thu, 05 Feb 2009 09:58:47 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:50775) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LV5gk-0001xE-EV for emacs-orgmode@gnu.org; Thu, 05 Feb 2009 09:58:46 -0500 Content-Disposition: inline In-Reply-To: <2c75873c0902050004s7da4353gbc5f2efcfe71253@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Graham Smith Cc: emacs org-mode mailing list On Thu, Feb 05, 2009 at 08:04:11AM +0000, Graham Smith wrote: > Dan, > > I'm working through the tutorial and not got very far :-( > > #+TBLNAME:continuous-data > | | > |-------------------| > | -4.76347066844695 | > | -1.83010300550287 | > | -3.62646358009839 | > | -3.06483847781371 | > | -3.29886543850004 | > | -3.33136718271076 | > | -2.92393768071614 | > | -1.81447109443947 | > | -2.77876256693823 | > | -3.04428187935138 | > | 2.68011061127436 | > | 3.8462031281076 | > | 3.26010701204355 | > | 3.13388406902156 | > | 2.64108043612206 | > | 2.79307900174277 | > | 2.63510171209823 | > | 0.382633073598201 | > | 1.36106585545773 | > | 3.15710034712042 | > #+RR: x<-c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1)) > #+R: title:"continuous-data" output-to-buffer:t > > [[file:tmp.png][histogram example]] > #+R: action:hist columns:1 colour:hotpink > #+R: intable:continuous-data outfile:"png" title:"histogram example" > > This is cut and pasted from Emacs and when I run org-R I get and error: > > "before first headline at position 975 in buffer RorgTest.org" > > > Have you any suggestions ? outfile:"png" specifies that you want png output saved to a file in the org-attach dir for the current entry. However, I think that your table is not in an entry (i.e. there is no heading in the file above). So org-attach complains. I think in this case this is appropriate behaviour, rather than a bug. So, make sure that you are working in an org entry, by adding a heading above the table, e.g. * org-R histogram example #+TBLNAME:continuous-data | | |-------------------| | -3.06521250484893 | | -3.85900568302554 | | -2.31281550717715 | | -2.69410857795684 | | -2.54226178999743 | | -3.02282932827444 | | -3.39871174816189 | | -2.91887758977056 | | -3.05343781967347 | | -2.76498552588994 | | 1.46406677150374 | | 2.45199818968135 | | 1.40791932601955 | | 1.29757561821086 | | 2.48973905577704 | | 2.69374921012632 | | 2.39647207311083 | | 3.21737310446711 | | 1.22693189766015 | | 2.37953000571237 | #+RR: x<-c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1)) #+R: title:"continuous-data" output-to-buffer:t [the following should now work.] #+R: action:hist columns:1 colour:hotpink #+R: intable:continuous-data outfile:"png" title:"histogram example" Dan > > Thanks, Graham > > > _______________________________________________ > 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 -- http://www.stats.ox.ac.uk/~davison