From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-babel-tangle-w-comments has no effect in R? Date: Thu, 01 Jul 2010 08:41:59 -0700 Message-ID: <87r5jnqke0.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=43245 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OULtt-0003IV-Hq for emacs-orgmode@gnu.org; Thu, 01 Jul 2010 11:42:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OULts-0002nv-1y for emacs-orgmode@gnu.org; Thu, 01 Jul 2010 11:42:05 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:54860) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OULtr-0002ne-OJ for emacs-orgmode@gnu.org; Thu, 01 Jul 2010 11:42:04 -0400 Received: by pwi9 with SMTP id 9so1895617pwi.0 for ; Thu, 01 Jul 2010 08:42:02 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Thu, 1 Jul 2010 09:27:54 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: emacs-orgmode Hi Rainer, There is one more requirement for tangling with comments, that is the presence of a :comments header argument. If this argument is not set for a code block then that code block *will not* be tangled with comments regardless of the value of `org-babel-tangle-w-comments'. You can set this variable to default to true for R code blocks with the following (add-to-list 'org-babel-default-header-args:R '(:comments . "yes")) Hope this helps. I think that moving forward it might make sense to remove the org-babel-tangle-w-comments variable, as it's confusing to have two points of control for comments during tangling. Also, it looks like I need to add the :comments header argument to the babel documentation. Thanks for helping to sort some of these issues out! Best -- Eric Rainer M Krug writes: > Hi > > I am trying to use "tangle with comments". Based on a previous thread, I > set org-babel-tangle-w-comments to t with > (setq org-babel-tangle-w-comments t) > in my emacs.org file. > > The variable is actually set to 1 - I checked vie C-h - v > > But nothing is changing in the tangled file? Am I doing something wrong? Or > are comments not supported in R in org-babel? > > I attach a small testfile. > > Cheers, > > Rainer