Conversation
Implement a `use_snapshot()` helper to go with `use_r()` and `use_test()`. I ran out of time and didn't implement tests or NEWS for this yet (and there's a solid chance that this doesn't quite nail it), but I wanted to get it checked in. Fixes r-lib#2156.
|
This should be good to go now! |
|
@jonthegeek and/or @maelle What is the workflow in which you regularly want to open snapshot files in an editor? I mostly interact with them in the |
I think my original interest in this was more for the other direction, where I'm looking at a snapshot (on a rare occasion when I edited one directly for an anticipated result or something) and want to hop to the test or R file with my hotkeys. I've had situations where I want to edit the file to define what I think it should look like, though (before working out exactly how to do that), so that's where this would come in for me. Not super common but it will be nice when it comes up. |
|
I was interested in the other direction compared to @jonthegeek. If I'm reviewing a new-to-me package and reading a test file that contains snapshot tests, I'd like to be able to more easily go to the corresponding snapshot files. And obviously I'd then need to go back. If it were not |
Implement a
use_snapshot()helper to go withuse_r()anduse_test().I ran out of time and didn't implement tests or NEWS for this yet (and there's a solid chance that this doesn't quite nail it), but I wanted to get it checked in.
Fixes #2156.