From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: ob-R, problem with try/catch Date: Wed, 22 Apr 2015 12:03:47 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yl2kZ-00024a-VY for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 18:04:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yl2kV-0003q5-Rh for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 18:04:07 -0400 Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:52758) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Yl2kV-0003pw-KM for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 18:04:03 -0400 Received: from [168.105.153.166] (port=58725 helo=manifi) by box472.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1Yl2kK-00007f-PV for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 16:03:53 -0600 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: Org-mode Aloha all, Prior to eaa3a761dae, when working in a session, I was able to run this R source code block without problems: ,----------------------------------------- | #+header: :file r/adze_wt_log.pdf | #+header: :results output graphics | #+header: :width 4 :height 3 | #+begin_src R | g <- ggplot(x, aes(x = weight)) | g + geom_histogram(aes(y=..density..)) | rm(g) | #+end_src `----------------------------------------- After eaa3a761dae, I get an error and an empty output file. I can work around this error by removing the line "rm(g)", however, I'd like to keep the session "clean" and not have a bunch of variables hanging around. Is there a way to do this with ob-R.el in its current state? Or, should I adopt a different set of habits? All the best, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com