Description Usage Details Value Author(s) References See Also Examples
R does not store nor export the path of the currently running script. This is an attempt to circumvent this limitation by applying heuristics (such as call stack and argument inspection) that work in many cases.
1 2 3 4 5 6 7 8 9 |
This functions currently work only if the script was source
d,
processed with knitr
,
or run with Rscript
or using the --file
parameter to the
R
executable. For code run with Rscript
, the exact value
of the parameter passed to Rscript
is returned.
The path of the currently running script, NULL if it cannot be determined.
Kirill Müller, Hadley Wickham, Michael R. Head
http://stackoverflow.com/q/1815606/946850
base::source()
, utils::Rscript()
, base::getwd()
Other deprecated functions: coalesce.na-deprecated
,
df_to_list-deprecated
,
hms.to.seconds-deprecated
,
kimisc-deprecated
,
list_to_df-deprecated
,
nc-deprecated
,
nlist-deprecated
,
ofactor-deprecated
,
sample.rows-deprecated
,
seconds.to.hms-deprecated
,
tll-deprecated
,
vswitch-deprecated
1 | ## Not run: thisfile()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.