-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7696 from quarto-dev/feature/spin
Bring support for rendering from R file
- 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