From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: trouble exporting just one subtree while using babel and R code blocks Date: Wed, 6 Mar 2013 15:28:07 -0600 Message-ID: References: <512298D2.4080203@binghamton.edu> <51379A08.2020606@binghamton.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDLsg-0004mA-HS for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 16:28:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDLse-0006SE-US for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 16:28:10 -0500 Received: from mail-lb0-f169.google.com ([209.85.217.169]:58792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDLse-0006RD-Mq for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 16:28:08 -0500 Received: by mail-lb0-f169.google.com with SMTP id m4so6091133lbo.28 for ; Wed, 06 Mar 2013 13:28:07 -0800 (PST) In-Reply-To: <51379A08.2020606@binghamton.edu> 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: "Christopher W. Ryan" Cc: emacs-orgmode@gnu.org On Wed, Mar 6, 2013 at 1:33 PM, Christopher W. Ryan wrote: > Thanks John. I was a little nervous about upgrading org version. I use > Vince Goulet's version of emacs with ESS built-in, and he removed > org-mode from his latest release (24.2.1) > > http://vgoulet.act.ulaval.ca/pub/emacs/NEWS-windows > > But I downloaded and installed the newer emacs anyway, and got org-mode > version 7.9.3f from the org website, and that solved my problem. So far, > so good . . . . Yay! Glad things worked for you. John > > --Chris > > Christopher W. Ryan, MD, MS > SUNY Upstate Medical University Clinical Campus at Binghamton > 425 Robinson Street, Binghamton, NY 13904 > cryanatbinghamtondotedu > > "Once we recognize that we do not err out of laziness, stupidity, or > evil intent, we can liberate ourselves from the impossible burden of > trying to be permanently right. We can take seriously the proposition > that we could be in error, without deeming ourselves idiotic or > unworthy." [Karen Schulz, in Being Wrong: Adventures in the Margin of Error] > > > John Hendy wrote: >> On Mon, Feb 18, 2013 at 3:10 PM, Christopher W. Ryan >> wrote: >>> I have a long cumulative org file that contains work related to a series >>> of studies. Each first-level subtree (*) is a new study. I need to be >>> able to export any given first-level tree on its own, with an output pdf >>> file name different from the main org filename, and with a title perhaps >>> different from the * headline. And I need to execute R code as it >>> exports. I am running org-mode 7.7 on Windows XP >>> >>> A sample org file to illustrate the problem looks like this: >>> >>> ------------------------------------------ >>> >>> * goodbye >>> >>> foo foo >>> >>> * Hello >>> :PROPERTIES: >>> :EXPORT_FILE_NAME: TestMyBabelSetup >>> :EXPORT_TITLE: foobar >>> :EXPORT_AUTHOR: Christopher W. Ryan, MD MS >>> :RESULTS: output >>> :EXPORTS: both >>> :END: >>> >>> foo >>> >>> #+begin_src R >>> rnorm(3) >>> #+end_src >>> >>> >>> -------------------------------------------- >>> >>> When I export the whole file to pdf, everything works fine. >>> >>> But if I try to export just the * Hello tree, then I get an error: >>> >>> Args out of range: "", -1, 0 >> >> I can't reproduce. =M-x org-version= is Org-mode version 7.9.3e >> (7.9.3e-910-g33c4f6) >> >> Can you try updating your orgmode version? >> >> I attached the results of =C-c C-e 1 p= (export subtree) with the >> cursor within the * Hello headline contents. >> >> >> Best regards, >> John >> >>> >>> If I remove anything relating to R and babel from the * Hello tree, >>> leaving just this: >>> >>> ----------------------------------------------- >>> * goodbye >>> >>> foo foo >>> >>> * Hello >>> :PROPERTIES: >>> :EXPORT_FILE_NAME: TestMyBabelSetup >>> :EXPORT_TITLE: foobar >>> :EXPORT_AUTHOR: Christopher W. Ryan, MD MS >>> :END: >>> >>> foo >>> >>> ------------------------------------------------- >>> >>> then exporting just the * Hello treee works as expected. >>> >>> I'm stumped. What am I doing wrong? >>> >>> Thanks. >>> >>> --Chris >>> -- >>> Christopher W. Ryan, MD, MS >>> SUNY Upstate Medical University Clinical Campus at Binghamton >>> 425 Robinson Street, Binghamton, NY 13904 >>> cryanatbinghamtondotedu >>>