get_library_path: Get full library path (not exported - internal saproj only)

Description Usage Arguments Value See Also Examples

View source: R/project.R

Description

This is a helper function for use in new_project(), setup_project() and update_project(). It gets the full library path and stops function execution if the project_library exists (unless 'inherit_library = TRUE'). This is intended to avoid a situation where the user accidently inherits an existing library.

Usage

1
get_library_path(project_library, inherit_library = FALSE)

Arguments

project_library

character: Name of project library to use for project packages. This is required in order to encourage reproducibility and portability.

inherit_library

logical: If TRUE, will use an existing project library. The default is set to FALSE to avoid accidentally using an existing library.

Value

Returns the full path to project_library

See Also

Other internal helper functions: allow_outcome()

Examples

1
# get_library_path("example-existing-project")

southwick-associates/saproj documentation built on May 7, 2020, 1:58 p.m.