Can you comment on
this issue? I keep getting the same error when I try to snapshot the current state of my library.
Error in findLocalRepoForPkg(pkg, repos, fatal = fatal) :
No package 'XXX' found in local repositories specified
Package XXX is not something that I purposefully installed or that I use in my code. When I try to clean it with packrat::clean(), I get
Error in find.package(pkgs, lib) :
there is no package called ‘XXX’
I think XXX is not installed, but it may be a dependency of some package YYY that is installed. I don't know why this wasn't taken care of when YYY was installed, but I am going to try installing XXX. If that fails, is there a way for me to identify YYY and remove it?
Also, running packrat::snapshot() takes literally hours. It makes problems like this very difficult to solve. All I want is to take the current state of my library -- which is already sitting right there on the file system, and I know because the library() statements in my code are working as expected -- and record that in packrat.lock. So is there a way to skip whatever else packrat::snapshot() is doing?
Thank you!