powered by
It executes the function fun by first switching directories temporarily to the folder folder and then returning to the working directory.
fun
folder
fun_from_folder(folder, fun, ...)
The return value of fun(...)
fun(...)
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 fun
list.files() fun_from_folder(system.file("data", package = "TexExamRandomizer"), list.files) list.files()
Run the code above in your browser using DataLab