Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

auto.snapshot behavior

18 views
Skip to first unread message

Andreas Olden

unread,
Jan 18, 2019, 9:30:39 AM1/18/19
to packrat-discuss
Noob alert. I am using rstudio with packrat and github with github desktop, and have enabled auto.snapshot. However I do not understand when it takes the snapshot. It for sure does not take a snapshot when installing a package, library a package or using a package, either in the terminal or in a script. (at least Github desktop does not have any changes to commit). 

From the walkthrough I read: If you have automatic snapshots turned on, Packrat will record package upgrades and additions in the background, so you don’t even need to remember to call ::snapshot() manually unless you’re performing a less common action.

However, this does not seem to be happening. What kind of events trigger an automatic snapshot? Is it time? How often?

Note also that by using the snapshot() command everything works fine and Github desktop finds the changes. 

I am much grateful for any pointers!

Kevin Ushey

unread,
Jan 18, 2019, 12:32:15 PM1/18/19
to Andreas Olden, packrat-discuss
For what it's worth, automatic snapshotting was a bit of a misfeature as we found that snapshots can occasionally be prohibitively slow, and the failure modes for automatic snapshotting are not well handled.

That said, if you're running R within a terminal, you should see automatic snapshots occur after each command is executed (assuming installed packages within your project have changed after some command execution).

--
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.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages