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
I came across some errors with the packrat::clean and packrat::restore functions when working with ignored local packages.
I have a local R package included in my repository and added it to the ignored.packages. Then I have installed it with packrat::install("mypackage").
Then packrat::clean() will fail with the error message:
Error: Unable to retrieve package records for the following packages:
"mypackage"
I have debugged the source code and found that a simple change in packrat:::unused_packages will fix it: orphans <- setdiff(orphans, c("manipulate", "rstudio", packrat::opts$ignored.packages()))
Can you explain why you did not choose to ignore the packages listed in ignored.packages here? Though it might be strange that the package is listed in orphans though it is still in use. Maybe that is the point where something goes wrong? Happy, if you can help!
The same issue holds with packrat::restore.
I am using packrat 0.5.0.
The text was updated successfully, but these errors were encountered:
packrat::snapshot() works well with packrat::opts$ignored.packages("stat.desc") but packrat::restore() doesn't work.
stat.desc is my own package. I must move stat.desc, make restore then copy again package stat.desc inside packrat...
Error: Unable to retrieve package records for the following packages:
Hi,
I came across some errors with the
packrat::clean
andpackrat::restore
functions when working with ignored local packages.I have a local R package included in my repository and added it to the
ignored.packages
. Then I have installed it withpackrat::install("mypackage")
.Then
packrat::clean()
will fail with the error message:I have debugged the source code and found that a simple change in
packrat:::unused_packages
will fix it:orphans <- setdiff(orphans, c("manipulate", "rstudio", packrat::opts$ignored.packages()))
Can you explain why you did not choose to ignore the packages listed in ignored.packages here? Though it might be strange that the package is listed in
orphans
though it is still in use. Maybe that is the point where something goes wrong? Happy, if you can help!The same issue holds with
packrat::restore
.I am using
packrat 0.5.0
.The text was updated successfully, but these errors were encountered: