Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi Placide,
I am copying here the same comments as I left in Teams.
I edited your original documents and made a few suggestions.
Using an inactive code chunk (#| eval: false) followed by ::: {.callout-note collapse="true"} and active code chunk with #| echo: false, and then ::: to close the callout-note allows for the output of the code to be only visible when clicking on the the header (see syntax for more detail). I did this for about one half of the code chunks - feel free to expand if you feel this meets your needs. In my view this is the most user-friendly option.
Alternatively you can simply have all the code chunks being inactive using exec=F in _quarto.yml (no need to repeat it in the code chunks), but that defeats a little bit the purpose of having a dynamic document. You could simply provide a download link to a pure R syntax file, without formatting it in Quarto
I also made a couple of suggestions to shorten/simplify the R code. Feel free to adopt them or not if you don't find them useful. The most important ones::
I hope this helps
P