From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: cannot execute org-mode code from the front page tutorial. Date: Sat, 16 Aug 2014 17:01:44 -0400 Message-ID: <877g28f8sn.fsf@pierrot.dokosmarshall.org> References: <8738cxvhe0.fsf@gmail.com> <87wqa9zjdl.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIl6z-0005JC-0h for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 17:02:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIl6t-0000Ho-I8 for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 17:02:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:47026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIl6t-0000Hk-C6 for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 17:01:59 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XIl6q-000113-Mm for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 23:01:56 +0200 Received: from pool-173-48-174-104.bstnma.fios.verizon.net ([173.48.174.104]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Aug 2014 23:01:56 +0200 Received: from ndokos by pool-173-48-174-104.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Aug 2014 23:01:56 +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 Charles Berry writes: > 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] > Ah, that's what's happening! > [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. > Thanks! As penance, I'll try to fix the worg page (unless somebody beats me to it of cource). -- Nick