This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script to check knitr version is high enough to render code blocks in…
… challenges
- Loading branch information
7d92fce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this!! very nicely done
7d92fce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
7d92fce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can simply do:
if (packageVersion("knitr") < "1.10.12") stop("knitr must be version 1.10.12 or higher")
The fix allowing chunks to be quoted was introduced on April 19th (yihui/knitr@3f52d47) with version 1.9.20 (yihui/knitr@75a8ec0)