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

Description Usage Arguments Details Value See Also Examples

Description

Loads project settings without loading them into the environment.

Usage

1
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())

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).

Value

object of type rsuite_project

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

1
2
3
4
5
6
7
8
9
# 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"))

RSuite documentation built on June 10, 2019, 5:03 p.m.