Displaying 2 results from an estimated 2 matches for "whereami".
2010 Feb 22
3
relative file path
Hello,
Is there a way to find where a script is located within a script? getwd()
doesn't do what I want because it depends on where R was called from. I want
something like source("randomFile") and within randomFile there is a
function called whereAmI() which returns c:\blah\blah2\randomFile.R
In perl there is a library called FindBin and $FindBin::Bin has the
directory of the file that called $FindBin::Bin.
[[alternative HTML version deleted]]
2006 May 03
1
Installation problem
...Entering directory
`/state/partition1/apps/packages/R-2.3.0/tests/Examples'
make[4]: `Makedeps' is up to date.
make[4]: Leaving directory
`/state/partition1/apps/packages/R-2.3.0/tests/Examples'
make[4]: Entering directory
`/state/partition1/apps/packages/R-2.3.0/tests/Examples'
whereami? at ../../tools/Rdnewer.pl line 26.
make[4]: *** No rule to make target `../../src/library/base/all.R',
needed by `base-Ex.Rout'. Stop.
make[4]: Leaving directory
`/state/partition1/apps/packages/R-2.3.0/tests/Examples'
make[3]: *** [test-Examples-Base] Error 2
make[3]: Leaving direc...