Hymans Robertson R User Group
1/18/23
Fast way to publish Jupyter Notebooks!
quarto render --execute
will recomputeOptions are moved to within the code chunk using #|
(hash-pipe) for each line
Should you switch to Quarto? Not necessarily. If you find R Markdown meet your need, you can definitely stay there. It is not imperative to switch. - Yihui Xie
_freeze/
directory in your projectquarto render
by default.--execute
to recompute:<div>
tagsoutput:
to the corresponding format:
in your YAMLknitr::convert_chunk_header()
to convert your code blocks (outputs a .qmd
file)_quarto.yml
file if necessaryFile > New Project > New Directory > Quarto Project
output:
, use format:
RMarkdown | Quarto |
---|---|
output: html_document |
format: html |
output: pdf_document |
format: pdf |
output: word_document |
format: docx |
output: xaringan |
format: revealjs |
output: ioslides |
format: revealjs |
output: distill |
Quarto Article Layout |
knitr::convert_chunk_header()
will convert your RMarkdown code chunks into quarto compatible format.
_quarto.yml
for websitesquarto publish
can push and update a number of different kinds of webhosts. You will need credentials to publish to each of these.
Hand off data objects with multiple languages in a Quarto Document
Languages | Method |
---|---|
Python <=> R | {reticulate} /Apache Arrow or Pandas |
R <=> JavaScript | ojs_define() function |
Python <=> JavaScript | ojs_define function |
viewof
, Observable Plot) with Shinyviewof
inputs are passed into Shiny’s input
opjectojs_define()
function to pass reactives to Observable code chunks