fun_from_folder {TexExamRandomizer} | R Documentation |
Apply function within a folder
Description
It executes the function fun
by first switching directories temporarily to the folder folder
and then returning to the working directory.
Usage
fun_from_folder(folder, fun, ...)
Arguments
folder |
The folder of execution that the function is switched to before executing |
fun |
Function to be executed from the relative path |
... |
Options to be passed to |
Value
The return value of fun(...)
Examples
list.files()
fun_from_folder(system.file("data", package = "TexExamRandomizer"), list.files)
list.files()
[Package TexExamRandomizer version 1.2.7 Index]