Use it to start working on a project created with g6tr_setup().
This function executes 4 sub-steps:
renv prompt Will run
renv::status()and if project library is not synchronized with renv.lock file, will show a prompt to choose eitherrenv::snapshot()orrenv::restore(), or just skip.attach packages Will attach all the packages listed in project's DESCRIPTION file.
resolve conflicts Will load the
conflictedlibrary and resolve a set of locally defined conflicts.source r Will source all scripts located in the "R" subfolder of the project folder.
Each of the steps can be turned off by switching the corresponding parameter.
Usage
g6tr_project_continue(
renv_prompt = interactive(),
attach_packages = TRUE,
resolve_conflicts = TRUE,
source_r = TRUE,
project = "."
)Arguments
- renv_prompt
If
TRUE(default), will runrenv::status()and if project library is not synchronized with renv.lock file, will show a prompt to choose eitherrenv::snapshot()orrenv::restore(), or just skip.- attach_packages
If
TRUE(default), will attach (calllibrary()) all the packages listed in project's DESCRIPTION file.- resolve_conflicts
If
TRUE(default), will load theconflictedlibrary and resolve a set of locally defined conflicts. Update the conflicts in the root directory of your monorepo if you want to change this for future projects.- source_r
If
TRUE, will source all scripts located in the "R" subfolder of the project folder. But if "R" subfolder does not exist or if it does not contain any "*.R" scripts, it won't show any notifications.- project
Path to a project. By default it is current working directory.