From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: BUG variable expansion with table Date: Fri, 27 Jun 2014 11:48:53 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0SmI-0005Mh-FS for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 05:49:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0SmD-0000dU-EL for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 05:49:06 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:45297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0SmD-0000dP-6e for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 05:49:01 -0400 Received: by mail-wg0-f45.google.com with SMTP id l18so4815292wgh.28 for ; Fri, 27 Jun 2014 02:49:00 -0700 (PDT) In-Reply-To: (Andreas Leha's message of "Fri, 27 Jun 2014 00:25:59 +0100") 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: Andreas Leha Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Andreas Leha writes: > Hi Rainer, > > Rainer M Krug writes: > >> Hi >> >> there seems to be a bug in the table transfer. The org file below >> evaluates as shown, i.e. the TABLE_BLOCK contains one column less then >> it should as the first column is discarded and the second one used as >> the row names. This only occurs when there is a second variable >> defined. When the second variable is not passed, the code works (see >> second example below). >> >> I did not get far when debugging, only that in the function >> org-babel-R-assign-elisp when assigning TABLE_FILE the rownames are >> missing in the =3Dvalue=3D. >> >> Rainer >> >> First example: >> >> #+PROPERTY: rownames yes >> #+PROPERTY: colnames yes >> >> #+NAME: TABLE >> | | name | description | >> |----------+--------------+--------------------| >> | annee | year | Year of simulation | >> | id | ipoints_Qdiv | Point Number | >> | iespece | species | species number | >> | scenario | scenario | Type of forest | >> #+PROPERTY: var TABLE_FILE=3DTABLE >> #+PROPERTY: var+ float=3D123.45 >> >> * Data Assessment Results >> #+HEADERS: :var TABLE_BLOCK=3DTABLE >> #+HEADERS: :rownames yes >> #+HEADERS: :colnames yes >> #+begin_src R :results output wrap >> TABLE_FILE >> TABLE_BLOCK >> #+end_src >> >> #+RESULTS: >> :RESULTS: >> name description >> annee year Year of simulation >> id ipoints_Qdiv Point Number >> iespece species species number >> scenario scenario Type of forest >> Year.of.simulation >> ipoints_Qdiv Point Number >> species species number >> scenario Type of forest >> :END: >> >> >> Second example: >> >> #+PROPERTY: rownames yes >> #+PROPERTY: colnames yes >> >> #+NAME: TABLE >> | | name | description | >> |----------+--------------+--------------------| >> | annee | year | Year of simulation | >> | id | ipoints_Qdiv | Point Number | >> | iespece | species | species number | >> | scenario | scenario | Type of forest | >> #+PROPERTY: var TABLE_FILE=3DTABLE >> #+ PROPERTY: var+ float=3D123.45 >> >> * Data Assessment Results >> #+HEADERS: :var TABLE_BLOCK=3DTABLE >> #+HEADERS: :rownames yes >> #+HEADERS: :colnames yes >> #+begin_src R :results output wrap >> TABLE_FILE >> TABLE_BLOCK >> #+end_src >> >> #+RESULTS: >> :RESULTS: >> name description >> annee year Year of simulation >> id ipoints_Qdiv Point Number >> iespece species species number >> scenario scenario Type of forest >> name description >> annee year Year of simulation >> id ipoints_Qdiv Point Number >> iespece species species number >> scenario scenario Type of forest >> :END: > > > FWIW, I think that bug was reported some while back [fn:1] -- > unfortunately without a fix .... ;-) Pity - I will work around it then. Thanks, Rainer > > - Andreas > > > > Footnotes: > > [fn:1] http://article.gmane.org/gmane.emacs.orgmode/82295/match=3D > > =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJTrT4JAAoJENvXNx4PUvmCUHEH+wbMaqA63F5aH8biJDq9uIXV XSQpYz8q9Pq1+72VQosRJ0Wgdg77YRPjQz4+PiTQHNqOYrGw1AqViAG8zZZfjOGh kBg73p+Ba1NcTCIp9zHVxsLVxNfhv26u4zrGXKKlS2W8qyxjYqTmDGVCFsg+ejJR I2rireYkz6jp8a7kCZChZ0QRwm+EWLOEI7dRZZ/xkBj9DHx8Horf8l7bzPFDFZot q1CKB22h+G89f8wTkpCaWvE4cycqldJK2G7OBQKzg3g0BWW1finqceSVce/fWz17 b8EqQ+ltpcL0mIpC1b7e9ZO4xoBjDgvN37H4ezzc4OInEkb/MlVfZFknQPS42Lg= =N6Kq -----END PGP SIGNATURE----- --=-=-=--