Sounds like a valuable use of R. Do you have a writeup on the approach or is it a standard feature of org and ess?
On Thu, Oct 9, 2014 at 7:37 AM, Rainer M Krug <rai...@krugs.de> wrote: > > I'd like to ping this as I think it > is an important bug. It e.g. make debugging of R packages, whose source > is in org, more difficult, (the .R files are tangled into ./R/) as ess > does not find the source of the R code in R as it uses the links in the > comments to find the org file. > > Temporary solution: I created a link to the org file in the ./R directory. > > Cheers, > > Rainer > > Rainer M Krug <rai...@krugs.de> writes: > >> When in the tangling taerget a directory is specified, this is not >> reflected in the comments in the tangled file when comments are set to >> include links: >> >> ,---- >> | * `link' The code block is wrapped in comments which contain >> | pointers back to the original Org file from which the code was >> | tangled. >> `---- >> >> In the org file =prodMixStands.org=: >> >> ,---- >> | :PROPERTIES: >> | :header-args+: :tangle ./R/update.cache.R >> | :END: >> | #+begin_src R >> | test >> | #+end_src >> `---- >> >> results in the file =update.cache.R= in a link to the file >> =prodMixStands.org= and not =./../prodMixstands.org=: >> >> ,---- >> | ## [[file:prodMixStands.org::*Begin][Begin:1]] >> `---- >> >> This is particularly bad when using ess and developer mode to develop a >> package. >> >> Cheers, >> >> Rainer > > -- > Rainer M. Krug > email: Rainer<at>krugs<dot>de > PGP: 0x0F52F982 > -- Grant Rettke g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson