-
Notifications
You must be signed in to change notification settings - Fork 1k
use litedown for rendering vignettes #6583
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
Changes from all commits
fedc6ef
b1f1adb
2fc3ddc
ac1fb44
905586d
1c14712
aa7bdad
071078c
1f347bd
e1d0c6f
4e7809f
c653cf6
4bacd15
a1819e1
5ed155d
e1329dd
e4b7912
1e191d5
0cfa02a
58b767d
9759281
9f35906
9a49b1d
010c238
d01e83c
d9300ad
e32a5db
a6afc0a
bae1e3c
ea7eec4
cc9bf5d
de27098
1281863
1c38d26
906f0f4
0895ff0
cda54e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -182,6 +182,9 @@ if (loaded[["knitr"]]) { | |
| # Which is fine and works thanks to cedta(). | ||
| DT = data.table(x=1, y=2) | ||
| test(11, kable(DT), output="x.*y.*1.*2") | ||
| invisible(knit(testDir("knitr.Rmd"), quiet=TRUE)) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can delete the Rout.mock, right? IIRC that only exists to mock out when {knitr} is not installed, but other.Rraw should always be run where all the required packages are available, in dev.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We may way to migrate this check to litedown |
||
| cat(readLines("knitr.md"), sep="\n") | ||
| invisible(file.remove("knitr.md")) | ||
| } | ||
|
|
||
| if (loaded[["parallel"]]) { | ||
|
|
||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| if (!suppressPackageStartupMessages(requireNamespace("litedown", quietly = TRUE))) { | ||
| cat(readLines("litedown.Rout.mock", warn = FALSE), sep = "\n") | ||
| q("no") | ||
| } | ||
|
|
||
| # Load litedown and render the Rmd file | ||
| library(litedown) | ||
| litedown::reactor(comment="# ", print=xfun::record_print) | ||
| invisible(litedown::fuse("litedown.Rmd", output = "litedown.md")) | ||
|
|
||
| # Print the rendered markdown content | ||
| cat(readLines("litedown.md"), sep = "\n") | ||
|
|
||
| # Clean up | ||
| invisible(file.remove("litedown.md")) |
ben-schwen marked this conversation as resolved.
Show resolved
Hide resolved
|
ben-schwen marked this conversation as resolved.
Show resolved
Hide resolved
|
ben-schwen marked this conversation as resolved.
Show resolved
Hide resolved
|
Uh oh!
There was an error while loading. Please reload this page.