set_object_path: Set global path option for saving/loading objects

Description Usage Arguments Value See Also Examples

View source: R/utils_save-load.R

Description

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.

Usage

1

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

1
2
3
4
5
6
if (interactive()) {

fs::dir_create(here::here("test-folder"))
jdtools::set_object_path("test-folder")

}

jdtrat/jdtools documentation built on Dec. 20, 2021, 10:05 p.m.