-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some tools for rendering Rmardown document in a capsule ? #1
Comments
I am now finally starting to get interested in this idea too, now that I can snapshot quickly. I've made the lockfiles generated by |
Hi Miles, I did not follow closely the why of Anyway, regarding the embeding, did you see that renv as a new mechanism that could be adapted to Rmd file or even single script out of a project ? It is There is also an experimental function called I am just sharing this in case you don't know. It is always interesting to see what others do. I know you have the using package also that do a similar thing that Regarding the main topic here, how do you see things working by embeding as as image ? You would call Initially, I had in mind something not necessarily embeded but an easy way of rendering a document in a capsule. Somthing like It is a bit unstructured thoughts above but I am taking the opportunity of this issue for discussion on this. |
Thanks for the info Chrisophe! So I've had a few performance issues with Part of it seems to be with using certain kinds of repos, e.g. r-universe, but even without those deps it's sluggish. I guess a lot of this is validation, and sometimes it makes network calls to do that. Yeah Regarding rendering you're thinking very much in the same direction to me. Some function to render using a lockfile like I was talking about a different kind of embedding though. Not embedding a lock file to be used internally by Thinking about this some more though, this is kind of moot if you have access to the author's source repository, since you could look at it as at the report date and read the lockfile from there if it was committed. |
Yes! So the way I hope that makes sense. I eventually rewrote |
So actually this leakage issue is something you need to be careful of with |
Hello @MilesMcBain !
Happy new year ! Hope you're fine !
I open this issue to open a discussion on an interesting use-case.
Today, there was a question on RStudio community about using a renv lockfile per Rmd document to be able to render a document in its own locked environment with specific package.
https://community.rstudio.com/t/renv-lockfile-per-rmarkdown-doc/
I found this idea very interesting and it made me think about your {capsule} package. I willing to try protyping some functions to help do that, but I wanted first to have your thoughts regarding the work you've done on this package, what you encounter on a daily basis, and if capsule already brings a solution to this or not. It seems to me you could have only one lockfile per project for all document in a project, where libraries are all in the same
packages.R
files. I may be missing something though...If you think it is interesting, do you capsule is a good place for such functions ? Or should it live elsewhere ?
As you could see in the small try I made, I think I am very close to the challenge you try to deal with.
I have some other ideas, and I think this would be very powerful to be able to have some companion lockfile (or even a way to embed it inside a Rmd - let's be audacious) and use it to render a Rmd Analysis in in its own temporary capsule without to have one project with a renv lib per Rmd document.
When you have some spare time, I am very interested to read you 💭 on this!
Thank you !
The text was updated successfully, but these errors were encountered: