[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] org-babel-tangle-w-comments has no effect in R?
From: |
Eric Schulte |
Subject: |
Re: [Orgmode] org-babel-tangle-w-comments has no effect in R? |
Date: |
Thu, 01 Jul 2010 08:41:59 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
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 <address@hidden> 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