-
Notifications
You must be signed in to change notification settings - Fork 1k
Make litedown vignettes compatible with pkgdown #7402
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Yihui Xie <xie@yihui.name>
Since we register a method for knitr::knit_print, keep it mentioned in the DESCRIPTION.
As with knit_print, avoid printing x when !shouldPrint(x). Use the overloaded method in the vignettes instead of relying on the auto-printing detection in print.data.table.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## litedown #7402 +/- ##
=========================================
Coverage 99.08% 99.08%
=========================================
Files 83 83
Lines 15800 15735 -65
=========================================
- Hits 15655 15591 -64
+ Misses 145 144 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I thought we have some workaround implemented for that in CI, but couldn't find it now. If there is we could possibly remove if this PR is merged. |
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.
@rikivillalba ? you do not change the date with date: !r Sys.Date()
Same remark applies to the EN vignette.
#6583
The purpose of this PR is to allow the vignettes to be rendered with litedown while still being compatible with rmarkdown since pkgdown uses rmarkdown to build the site. Some modifications were made:
{r} Sys.date()inline codes changed to !r Sys.date() (EDIT: this works in the YAML header only). They re compatible by both litedown and knitr/rmarkdown unliker Sys.date()(knitr only) and{r} Sys.date()(litedown only)