Skip to contents

Creates a new projr profile that overrides settings in _projr.yml. The profile becomes active when either the working directory (rprojroot::is_r_package$find_file()) or Sys.getenv("PROJR_PROFILE") is equal to profile.

Usage

projr_profile_create(profile = NULL, silent = FALSE)

Arguments

profile

character. If not NULL, then this is the name of the profile. If NULL and the environment variable PROJR_PROFILE is set, then made equal to its value.

silent

logical. If TRUE, then any messages are suppressed. Default is TRUE is the environment variable PROJR_TEST is "TRUE".

Value

Invisibly returns the new projr profile.

Details

Note that if any setting in projr profile-specific setting is empty (indicated by ~ in the YAML file by default), then the corresponding setting in _projr.yml is used.

See also

projr_profile_create_local,projr_yml_get