Learn R Programming

RSuite (version 0.37-253)

prj_init: Loads project settings without loading them into the environment.

Description

Loads project settings without loading them into the environment.

Usage

prj_init(path = getwd())

Arguments

path

path to start searching project base folder from. Search is performed upwards folder structure. Should be existing directory. (type: character, default: getwd())

Value

object of type rsuite_project

Details

Project parameters are searched and loaded. If the project has been loaded previously from the path the same project instance will be used without reloading.

If the project is the first one loaded it will become the default project (used then NULL is passed as the project for project management functions).

See Also

Other in project management: prj_build, prj_clean_deps, prj_install_deps, prj_load, prj_lock_env, prj_pack, prj_start_package, prj_start, prj_unload, prj_zip

Examples

Run this code
# NOT RUN {
# create exemplary project base folder
prj_base <- tempfile("example_")
dir.create(prj_base, recursive = TRUE, showWarnings = FALSE)

# start project
prj_start("my_project", skip_rc = TRUE, path = prj_base)

# init project
prj <- prj_init(path = file.path(prj_base, "my_project"))

# }

Run the code above in your browser using DataLab