Description Usage Arguments Examples
Change the current directory (for RStudio).
1 | this.dir(chdir=<BOOL>);
|
chdir |
boolean. Default |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Prefix script with:
bool <- this.dir();
# or
bool <- this.dir(chdir=TRUE);
# to change to current directory.
# Return value: bool = TRUE <==> succesfully found currently and changed to this path.
path <- this.dir(chdir=TRUE);
# does not change directory, but attempts to get
# the folder location of current script.
# If unsuccessful, returns path = NULL.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.