Closed timvdstap closed 4 months ago
Pardon my ignorance, I was under the impression that calling renv::restore() would install and attach packages captured in the renv.lock file.
It will install those packages, but it won't load or attach them -- you still need to use library(<pkg>)
to load the packages you wish to use, as you normally would in a "regular" R session.
Ah, thanks @kevinushey - appreciate it!
Hi all, beginner with renv here. Pardon my ignorance, I was under the impression that calling
renv::restore()
would install and attach packages captured in the renv.lock file. Am I mistaken in this? For example, when I execute the code, it tells me e.g. 'could not find function "%>%"', even though dplyr is installed and I can see it in my renv.lock file. Do I still need to load the packages, or am I not using renv properly in my workflow?Perhaps my paths are wrong?
Thank you in advance!