-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring support for rendering from R file
This goes for now through knitr::spin()
- Loading branch information
Showing
4 changed files
with
110 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#' --- | ||
#' title: "A report generated from a pure R script" | ||
#' format: html | ||
#' --- | ||
#' | ||
#' This is a report generated by `knitr::spin()`. | ||
#' | ||
#' ## Code block {#block} | ||
#' | ||
#' Let's try some **knitr** options: | ||
|
||
#| echo: false | ||
#| fig-with: 7 | ||
# This is a normal R comment. | ||
plot(cars) | ||
|
||
#' ## Inline value {#inline} | ||
#' | ||
#' Now write an inline value. We know the value of $\pi$ is | ||
{{ pi }} | ||
#' . | ||
#' | ||
#' Finally please note that all roxygen comments are | ||
#' optional. You do not need chunk options, either, | ||
#' unless you want more control over the output | ||
#' elements such as the size of plots. | ||
|
||
# /* Write comments between /* and */ like C comments: | ||
Sys.sleep(60) | ||
# */ |
This file contains 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