Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Unable to snapshot: Error in findLocalRepoForPkg

31 views
Skip to first unread message

Eric Kernfeld

unread,
Mar 30, 2020, 11:04:15 AM3/30/20
to packrat-discuss
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!

Eric Kernfeld

unread,
Mar 30, 2020, 11:18:07 AM3/30/20
to packrat-discuss
Update: simply installing package XXX seems to work, and by "literally hours", I guess I meant about 20 minutes. I should drink less coffee, sorry. 

Joe Cheng

unread,
Mar 30, 2020, 11:20:54 AM3/30/20
to Eric Kernfeld, packrat-discuss
Hi Eric, the snapshot process can definitely feel like forever, with or without coffee! The new renv package supersedes packrat for most uses and is dramatically faster and less fragile, you might want to check that out, especially the next time you run into a packrat problem. 

--
You received this message because you are subscribed to the Google Groups "packrat-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packrat-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packrat-discuss/0b4e7510-e555-4ed3-ba9c-34f1ec9f54ad%40googlegroups.com.

Eric Kernfeld

unread,
Mar 30, 2020, 12:08:01 PM3/30/20
to packrat-discuss
I do use renv where possible, but this project uses several local repos, which are easier for me to track with Packrat.

Joe Cheng

unread,
Mar 30, 2020, 1:17:59 PM3/30/20
to Eric Kernfeld, packrat-discuss
Oh OK, fair enough!

On Mon, Mar 30, 2020 at 9:08 AM Eric Kernfeld <eric....@gmail.com> wrote:
I do use renv where possible, but this project uses several local repos, which are easier for me to track with Packrat.

--
You received this message because you are subscribed to the Google Groups "packrat-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packrat-discu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages