in_dir | R Documentation |
Change the working directory, evaluate the expression, and restore the working directory.
in_dir(dir, expr)
dir |
Path to a directory. |
expr |
An R expression. |
library(xfun)
in_dir(tempdir(), {
print(getwd())
list.files()
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.