From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [PATCH] Write org variables into own R environment Date: Wed, 26 Mar 2014 16:52:06 +0100 Message-ID: References: <8738ifh70y.fsf@bzg.ath.cx> <87mwgda7c1.fsf@gmail.com> 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]:47754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSq7s-0005hd-7X for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 11:52:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSq7m-0004rf-8k for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 11:52:24 -0400 In-Reply-To: <87mwgda7c1.fsf@gmail.com> (Aaron Ecay's message of "Wed, 26 Mar 2014 01:06:00 -0400") 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: Bastien Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Aaron Ecay writes: > Hi Rainer, > > This patch looks very promising. (I have not had a chance to test the > implementation yet).=20=20 Thanks - please let me know as soon as you tested it. > One issue might be the name of the =E2=80=9Corg=E2=80=9D variable > =E2=80=93 maybe this should instead be =E2=80=9C.org=E2=80=9D or =E2=80= =9C_org=E2=80=9D to lessen the chance of > stomping on pre-existing variables named =E2=80=9Corg=E2=80=9D in people= =E2=80=99s code. Agreed here. .org would be a tricky solution, because it is hidden - advantage or disadvantage? Probably a disadvantage. I will rename it to=20 "_org_variables_" which is likely to be unique. Do you think it would be worth to have a check along the lines of=20 if(class(_org_variables_)!=3D"environment") { stop("_org_variables_ is already defined ") } else { ... } or to make the name user definable? A different thing which I am using at the moment is to save the environment so that it can be easily distributed along the tangled code *if all variables are defined at the beginning and not per code block*. Another option I am thinking about is to provide the possibility to store not only variables, but also R function - useful? Effectively a kind of "R package light for org-mode"? > > Thanks (also for your previous patch for handling in graphics blocks), Pleasure - Thanks that they are useful. Rainer > > -- > Aaron Ecay > > =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJTMveqAAoJENvXNx4PUvmCYRoIANfewiw3oKJR5SdyN8fqXUu/ gpAG2Qeq0qmOoWhZwcJ55mpN8ELgD+2/dT0YsgSN7PENzKkurcrdCxyn8CVi0k8l tOBht1VZb0hfpYs9d1aD5AxZpwhJqLc4bU67wmYaEQIQCVlYY1gfAh6p4IbP5McA gy/Weku5kEkgY/vlDY4u0yd+zUwE0BLlTtsaXQJ4kZR6mU8JJKLAp7ArT/ycxKv0 m42SuOEj2AK3eKoH+x88BCSsM6FPog0yjJCays0TwyGzbMzUWNLiPQxCO10d0cI8 qC1owsmTske+stBQqluSn3lh4/Ex147DmYQK2vfySbQf5DIgcft91YinlJ3V4Is= =4Rrh -----END PGP SIGNATURE----- --=-=-=--