fun_from_folder: Apply function within a folder

Description Usage Arguments Value Examples

View source: R/additionalFunctions.R

Description

It executes the function fun by first switching directories temporarily to the folder folder and then returning to the working directory.

Usage

1
fun_from_folder(folder, fun, ...)

Arguments

folder

The folder of execution that the function is switched to before executing fun

fun

Function to be executed from the relative path

...

Options to be passed to fun

Value

The return value of fun(...)

Examples

1
2
3
list.files()
fun_from_folder(system.file("data", package = "TexExamRandomizer"), list.files)
list.files()

TexExamRandomizer documentation built on May 2, 2019, 3:18 a.m.