Added {{folder_first_word}}
to objects available to use in the project templates. Evaluates to the first “word” in the folder name, where the word separator is either a space or hyphen.
Added create_project(renv.settings=)
argument.
No longer using renv::scaffold(settings = list(snapshot.type = 'all'))
as the default.
Improved messaging in the default .Rprofile
template file to finish setting up the renv project.
use_project_file()
function when the template has an element that evaluates to NULL
(which resulted in an indexing error). (#19)Allowing users to use their template to override function arguments in create_project()
. This way, if the user never uses git, for example, this can be communicated in the template, rather than needing to change the function argument every time.
Added create_project(symlink=)
argument indicating whether or not to place a symbolic link to the folder indicated in create_project(path_data=).
Updated .Rprofile
start-up message for new repositories to include the renv::snapshot()
step.
create_symlink()
to pass the full path to R.utils::createLink(link=)
instead of just the folder name. This solves an issue when creating symbolic links without full admin rights.Default snapshot type is now ‘all’.
Removed ‘rstudioapi’ package dependency.
Bug fix in create_project(overwrite=)
where existing files were not being prompted with inquiry whether to overwrite.
Documentation updates.
Documentation updates and tidying up for CRAN submission.
Removed path normalization RStudio add-in.
"script_path"
to allow users to quote the file location.When create_project(renv = TRUE)
, renv::init()
has been switched to renv::scaffold()
. This stops renv from initializing the project. The user must call renv::hydrate()
in order to discover the packages used in the project’s *.R
and *.Rmd
files and have them added to the renv.lock
file.
When a user specifies an attribute to the template list called "script_path"
, the path is sourced.