Displaying 1 result from an estimated 1 matches for "insertthisfigure".
2013 Jun 11
0
How to "source" a R script in a parent/parallel directory (win/linux)
..."C:\\mypath\\PROGRAM", "Constants_and_Functions")
source(file.path("C:\\mypath\\PROGRAM", ""RunThis.R"))
}
My idea was that in R would have been possible to write something
similar to what I write in latex with figures, i.e.
\includegraphics{../PROGRAM/InsertThisFigure.pdf}
so something like
source("../PROGRAM/RunThis.R") would have been worked. but it didn't
I tried a brute attempt like the following:
step.back <- setwd("..")
source(file.path(step.back, ""RunThis.R"))
but without success.
Any suggestion ?
--
Ott...