tests/test_import/module_chdir/module_chdir.R

# This variable is set when the script is sourced, so that
# the .chdir parameter can be tested.
directory_of_sourcing <- getwd()

fun_chdir_report <- function() {
  paste0("Module was sourced in: ",directory_of_sourcing)
}
smbache/import documentation built on Jan. 27, 2024, 10:49 a.m.