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)
}
rticulate/import documentation built on Feb. 2, 2024, 10:01 a.m.