workIn | R Documentation |
This function allows you to perform operations in a specified directory and then return to the original directory. It is useful when you need to work with files or directories that are located in a specific location, but you want to return to the original working directory after the operation is complete.
workIn(dir, expr)
dir |
The directory path in which to operate. If the directory does not exist, it will be created recursively. |
expr |
An R expression to be evaluated within the specified directory. |
The result of evaluating the expression within the specified directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.