From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: [babel]Skip comments on code blocks on export? Date: Wed, 25 Jan 2012 10:14:07 +0100 Message-ID: <4F1FC7DF.7000805@gmail.com> Reply-To: R.M.Krug@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpyvl-0005mr-1w for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 04:14:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rpyvj-0007I4-GL for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 04:14:13 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:48906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpyvj-0007Hy-6e for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 04:14:11 -0500 Received: by eaaa11 with SMTP id a11so356993eaa.0 for ; Wed, 25 Jan 2012 01:14:09 -0800 (PST) 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi is there a way of skipping comments when exporting R code? The reason is, that I have roxygen tags in my code, which I do not want to bi included when I export the document to a pdf, as they are only irritate readers not familiar with roxygen. On the other hand, I would like to keep them in the code when tangling, as basic documentation and a base for when / if I convert the code to a package. So my question: is there a way of suppressing comments in code on export? I am aware that might be difficult, but possibly a parameter #+PROPERTY: supressLines "##" which supresses all code lines in code blocks starting with ## would be great for this purpose. Or is there another way of handling this issue? Rainer - -- 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8fx98ACgkQoYgNqgF2egrXSwCfTba9EsyAvNpkAWzrpFAsefXD rnkAniVRBVJnF8HLUEFll2XexkzRREd2 =56mx -----END PGP SIGNATURE-----