tests/test_import/module_recursive/src/title_text.R

# If import::from does not change the path to the dirname(path)
# (like the chdir=TRUE in sys.source), this shouldn't work.
import::from("to_title.R", to_title)

print_title_text = function(text){
  print(to_title(text))
}

Try the import package in your browser

Any scripts or data that you put into this service are public.

import documentation built on Sept. 24, 2023, 1:08 a.m.