Replies: 2 comments 3 replies
-
Another option could be to use render targets to specify which (types of) files you want to render, and which you don't. That would seem preferable to me that renaming to https://quarto.org/docs/projects/quarto-projects.html#render-targets |
Beta Was this translation helpful? Give feedback.
-
A simple solution that would address the rendering and the renv (provided #9 (comment) would not address item 2) would be to host those files externally, either in a companion repo at WRUG or asking presenters to host the files themselves and linking them from WRUG's website. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Some sessions have
.Rmd
files included as resources (i.e. https://github.com/WarwickRUG/WarwickRUG.github.io/blob/main/posts/2022-12-08-web-scraping-with-rselenium/resources/RSelenium.Rmd). While useful, this is problematic for some reasons:WarwickRUG.github.io/posts/2023-03-08-impact-of-covid19-on-energy-consumption/resources/2023-03-08-impact-of-covid19-on-energy-consumption.Rmd
Lines 46 to 48 in 3ceac26
renv()
detects the libraries used in those notebooks and asks to include them in the lock file (which makes sense in many ways and doesn't in any others -we wouldn't want those files to be executed).As a temporary measure to address problem 1, I've added
eval = FALSE
to those files, so code is not evaluated, i.e.,WarwickRUG.github.io/posts/2023-03-08-impact-of-covid19-on-energy-consumption/resources/2023-03-08-impact-of-covid19-on-energy-consumption.Rmd
Lines 9 to 11 in 3ceac26
This addresses 1, but not 2, and also means that anyone wanting to reproduce the notebook will have to edit it. It also adds manual steps for us to prepare the blog post.
We should decide what to do with them. Some options:
*.rmd
into*.rmd.txt
so quarto and renv ignore them. This should be accompanied with some instructions on the session reminding users to rename files.Beta Was this translation helpful? Give feedback.
All reactions