You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a question regarding the functionalities of renv. I have a project where I use renv and basically i have all the libraries i need for running it in a renv.lock. Now I am creating a package based on this project so following the documentation I need to import all the packages dependencies in the DESCRIPTION file from my package. As these are mostly the same ones I had in my renv.lock file, is there a way I can transfer all the libraries in renv.lock and having it automatically written as imports in the DESCRIPTION file and avoid to write one-by-one?
I have been trying to find this info but I had no success, I found it is possible to do renv::install but as far I understood this is when you already have a DESCRIPTION file with the 'imports' section completed. Sorry if I missed something in the documentation, I am really new in the field of R package development!
Hope you can help me, thanks!
The text was updated successfully, but these errors were encountered:
There isn't anything directly available, but you could do it by hand by reading the lockfile with e.g. renv::lockfile_read(), and then constructing DESCRIPTION file entries as appropriate. I don't think there's anything extra needed from renv here so I'm going to close this issue.
Hello, I have a question regarding the functionalities of renv. I have a project where I use renv and basically i have all the libraries i need for running it in a renv.lock. Now I am creating a package based on this project so following the documentation I need to import all the packages dependencies in the DESCRIPTION file from my package. As these are mostly the same ones I had in my renv.lock file, is there a way I can transfer all the libraries in renv.lock and having it automatically written as imports in the DESCRIPTION file and avoid to write one-by-one?
I have been trying to find this info but I had no success, I found it is possible to do renv::install but as far I understood this is when you already have a DESCRIPTION file with the 'imports' section completed. Sorry if I missed something in the documentation, I am really new in the field of R package development!
Hope you can help me, thanks!
The text was updated successfully, but these errors were encountered: