This function will set the global option for saving/loading objects with jdtools functions so you do not have to specify the path parameter when calling save_object and load_object.

set_object_path(path)

Arguments

path

A directory within the current RStudio Project

Value

NA; used for side effects to set the global option jdtools.rds.path.

See also

Other utils-save-load: get_object_path(), unset_object_path()

Examples

if (interactive()) { fs::dir_create(here::here("test-folder")) jdtools::set_object_path("test-folder") }