-
Notifications
You must be signed in to change notification settings - Fork 4
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
Verbatim code chunks #17
Comments
Btw -- and I really hope you don't mind the intrusion -- but while I was here I noticed you have a notes on teaching draft post that is just fantastic. I have lots of outline-style posts kicking around in my head/repo/etc. where I haven't removed that |
Heya @gadenbuie ! :) Thanks for your kind words and feedback! Re the backtick escape - I could not remember this trick, although I knew it existed, I find I often forget about it, and what it is, exactly. I feel like there should be an rstudio addin for this, because showing an rmarkdown chunk as is is actually a pretty common teaching case. I've actually just lodged this as an issue on the remedy package. |
And double thanks for your kind comment about my teaching draft post :) The thing is - I don't even remember writing it! I think it contains a bunch of notes from when I went through the software carpentry teaching training, from this awesome book, How learning works, and then from this talk I gave: "Rethinking teaching statistical computing" I'll make an effort to dust off that post, and get it online, thank you so much for the push 😄 |
Hi @njtierney! So I was just browsing your blog's source code (you know, like a normal person) and noticed this great post wasn't showing verbatim R code chunks
njtierney.com/content/post/2018-05-16-rtip-3-rmarkdown-tricks-i-use-every-day.Rmarkdown
Lines 38 to 43 in 9ea7dd2
To fix this, you need to add this thing (lets call it an inline R noop and save me 8 backticks)
to the end of the R chunk header line, i.e.
The inline R noop breaks knitr's chunk parser so that the three+ backticked r chunk doesn't get evaluated by knitr. As always, Yihui has a blog post about it here.
The text was updated successfully, but these errors were encountered: