sokolhessnerlab / itrackvalr

Toolkit with a built-in pipeline infrastructure to integrate and analyze eye-tracking, behavioral, and self-report data in R.
MIT License
1 stars 0 forks source link

Use `renv` package management #17

Closed aridyckovsky closed 3 years ago

aridyckovsky commented 3 years ago

Problem Development environments at the local level currently require global package installation.

Solution Install and configure required packages for developing itrackvalr. Note that this is potentially different from the future renv used for the CSN-specific analysis.

Alternative solutions Another option is packrat, but I have experienced issues with this option in the past. It's a viable alternative if renv is worse.

aridyckovsky commented 3 years ago

According to the author of renv, this is a replacement for packrat. See https://rstudio.github.io/renv/articles/renv.html.

aridyckovsky commented 3 years ago

Importantly, renv documentation claims

If you’re using a version control system with your project, then as you call renv::snapshot() and later commit new lockfiles to your repository, you may find it necessary later to recover older versions of your lockfiles. renv provides the functions renv::history() to list previous revisions of your lockfile, and renv::revert() to recover these older lockfiles.

Currently, only Git repositories are supported by renv::history() and renv::revert().

aridyckovsky commented 3 years ago

For collaborative use, see https://rstudio.github.io/renv/articles/collaborating.html