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 <r.m.k...@gmail.com> 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 _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode