From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: cannot execute org-mode code from the front page tutorial. Date: Sat, 16 Aug 2014 16:49:04 +0000 (UTC) Message-ID: References: <8738cxvhe0.fsf@gmail.com> <87wqa9zjdl.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIhAb-0000H9-C6 for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 12:49:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIhAV-0007Ah-4S for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 12:49:33 -0400 Received: from plane.gmane.org ([80.91.229.3]:42524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIhAU-0007AW-Tt for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 12:49:27 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XIhAP-0003qg-6u for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 18:49:21 +0200 Received: from 172-7-166-26.lightspeed.sndgca.sbcglobal.net ([172.7.166.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Aug 2014 18:49:21 +0200 Received: from ccberry by 172-7-166-26.lightspeed.sndgca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Aug 2014 18:49:21 +0200 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: emacs-orgmode@gnu.org Nick Dokos gmail.com> writes: > > tsd tsdye.com (Thomas S. Dye) writes: > > > Aloha Jenia, > > > > jenia.ivlev gmail.com (jenia.ivlev) writes: > > > >> Hello. > >> > >> I'm trying to go through the org-mode tutorial on its official page. > >> [discussion showing that (if (listp value)...) generates a data.frame deleted] [delete patch turning a data.frame into a vector] > And assuming this is correct, the worg page will need to be corrected > too. > No patch is needed. The point of the code in org-babel-R-assign-elisp is to create a data.frame when `value' is a list. The patch adding `unlist(res)' turns it into an ordinary vector. This will break almost all uses of :var in R scr blocks. I don't think this example could have worked for a long while - turning elisp lists into R data.frames has been a feature for a good while. Also, note the use of `sbe' vs `org-sbe' in the formula. #+TBLFM: @2$1='(sbe "R-mean" (x "tbl-example-data()")) Use `colMeans(x)' to fix the worg page. HTH, Chuck