I'd like to use {renv} on a per post basis in a {blogdown} or {distill} blog. Is this possible and is there a recommended workflow?
I want to be able to rebuild individual posts (or the entire blog) in future, but I know that it might fail if I've updated packages globally since the original publication.
I assume this would involve a renv.lock file within the page bundle for each given post (i.e. in _post/YYY-MM-DD-post-name/
for a {distill} blog), but is there a way to install/load packages on a per post basis with {renv} when it comes to rebuilding a post/the whole site?
Feels like this is necessary for a truly reproducible experience. Or perhaps I'm missing something?
Edit (2022-03-22): I wrote about an approach using {renv} 'profiles' that you might find useful.