Closed camilavargasp closed 12 months ago
Fix
get_citation()
not working (line 280)lobster_abundance_all_years_20220829
missingCheck when ready
Hey @camilavargasp RE: Check why Quarto chunk option format are not working NOTE Not sure why, but it works if I do Rmd style chunk options
I looked at the commits and in materials/sections/programmatic-data-access.qmd the r chunks with the Quarto code options have a space between the start of the r code chunk and the Quarto code options. It's nitpicky, but the code options don't execute when that space is there. In the examples below, I'm using apostrophes instead of backticks so you can see the code chunk formatting.
This doesn't work: '''{r}
'''
This works: '''{r}
'''
@camilavargasp RE: Section 12: r-practice-clean-wangle.qmd. lobster_abundance_all_years_20220829 missing
When I made the R practice sessions, I set the yaml for each of the session_XX.qmd
files to eval: false
because none of the code in the practice sessions needs to run. The answers for each question are the lines of code, not the outputs of the code. So I never added the lobster data to the nceas-training
repo. If I needed to access the lobster data in the book, I used the URL link and would hide the code chunk.
Also, the file paths to the data will always be different when running code in the book vs what a participant would run so the code to read in lobster_abundance_all_years_20220829
that's visible in the r-practice-clean-wangle.qmd
is a reflection of what a participant would type out.
LMK if you have any questions about this - happy to answer them
@hdolinh Thank you for the chunk option clarification! It was driving me crazy.
I still need to finalize the r-practice-clean-wrangle.qmd and adapt it so that the exercise is only for one person as opposed to being collaborative. I'll take into consideration the points you mention above, thank you! Let you know if I run into issues or have any questions.
@camilavargasp RE: R clean and wrangle practice session:
Sounds good. One more thing I'll mention is that in both the r-practice-owner-clean-wrangle.qmd
and the r-practice-collaborator-clean-wrangle.qmd
files there is an "Extra Questions" section at the end that might be helpful for you. When I needed to shorten the practice session, I just made the questions not visible in the book but they're still there if you're looking for more cleaning and wrangling problems.
@camilavargasp I restructured the book build pretty significantly today, making it a lot faster, and got the redland
and dataone
packages installing properly for section 08, which is now back in the build. Lots more to do in the build to improve it, but it should be much faster now. I switched to using binary package builds from posit, and added an effective cache of the packages. So, if you need a new package, be sure its added to the DESCRIPTION
file, which is what triggers a fresh install of the packages. If you don't change DESCRIPTION, then the build will use the cache. Details in issue #71, and let me know how it works for you when you push a chapter.
Thanks @mbjones! The book is building and sooo much faster. I'll take a deep dive into GHA after the course to make sure we continue with the necessary updates. Thanks for documenting everything on an issue.
Book Prep