use_project_lib: Create Rstudio project library

Description Usage Arguments Details

View source: R/library.R

Description

Creates project library directory lib inside specified path.

Usage

1
use_project_lib(path = ".", lib = "library")

Arguments

path

Character vector specifying path. May contain '.' for parent directory reference.

lib

Character vector specifying library directory name.

Details

If there is no .Rproj file inside specified path then error will be thown.

If there is no .Rprofile file inside path then it will be created there and activation command for project specific library will be written to it. Otherwise activation command for project specific library will be appended to the end of existing .Rprofile file.

If there is no lib directory inside path then directory will be created, otherwise existing directory will be used as library with warning.


Bijection1to1/prolibr documentation built on Dec. 17, 2021, 10:52 a.m.