Skip to content

Commit

Permalink
small update .Rprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
guuswilmink committed Sep 10, 2024
1 parent cb2def1 commit b3fbaaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ if (any(list.files() == "renv")) {
} else {
message("No renv initialized, calling renv::init()")
message("Please select to use only the DESCRIPTION file for dependency discovery if prompted, and next select 'Restore the project from the lockfile'")
if (!requireNamespace("renv", quietly = TRUE)) {
install.packages("renv")
}
renv::init()
}

0 comments on commit b3fbaaa

Please sign in to comment.