From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Tangle including code generating graphics for :results graphics Date: Thu, 24 Sep 2015 10:26:56 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf1rx-0003w2-9a for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 04:27:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf1rt-0006Uk-9D for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 04:27:09 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:34583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf1rt-0006Ua-3K for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 04:27:05 -0400 Received: by wicfx3 with SMTP id fx3so17300600wic.1 for ; Thu, 24 Sep 2015 01:27:04 -0700 (PDT) Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by smtp.gmail.com with ESMTPSA id ft3sm4282510wib.17.2015.09.24.01.27.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Sep 2015 01:27:02 -0700 (PDT) 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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Is it possible to tangle an R code block including the code which is generating the graphs when using =3D:results graphics=3D ? I would like to tangle these code blocks generating the graphs as I would like to have a script which I can use to easily update all graphs when the simulated input data is updated. I have this for the actual analysis which works perfectly, but would like to have the same for the graphs. At the same time, I like the clarity of specifying :width and :height and other parameter for the plotting as header arguments. I have ,---- | :PROPERTIES: | :header-args+: :prologue "env <- fitBFGS; attach(env)" | :header-args+: :epilogue "detach(env); rm(env)" | :END: `---- and this is tangled perfectly - but obviously not the code for plotting. Is there an argument / setting to enable this? Thanks, Rainer =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; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWA7PUAAoJENvXNx4PUvmCVLYIAN+SoG9LPrXgvkPkxpNHAmW8 E5ohOzpMlXNFlrztOgtuH9h7Up85OPfnOJNG/thpUxRerRIbzn3T44U+lKqItJCo pdbF05/FFbL8HENEf+SH58NA+bTKkNNUeNHdsh62wh/cELnJ3wlLMvhmDT+TEgIL Ec0lrmKwGoX5PuU6uwuJBd3VnZCGYYvckzmFV8EiRBJ4pNwNpaON4aX5wbh9XlLV 7wYEunYYPPGaMuIRrm4xFu/iX1heUf4j4N9XkCC1dpwp+pwcIXNxnBU77veLuLOa +cSRxF7TgStUJMDbwCWTjHX9CtgztBW49mNSl0xJMBXVb6XnPv+k4enFAgjY89U= =UJBp -----END PGP SIGNATURE----- --=-=-=--