Bootstrapping An {ojs} Quarto Document With An Observable Notebook | R-bloggers

Bootstrapping An {ojs} Quarto Document With An Observable Notebook | R-bloggers

Bootstrapping An {ojs} Quarto Document With An Observable Notebook
Posted on August 19, 2022 by hrbrmstr in R bloggers | 0 Comments
[This article was first published on R – rud.is , and kindly contributed to R-bloggers ]. (You can report issue about the content on this page here )
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Share Tweet
Quarto is amazing! And, it’s eating the world! OK. Perhaps not the entire world. But it’s still amazing!
If you browse around the HQ , you’ll find many interesting notebooks. You may even have a few yourself! Wouldn’t it be great if you could just import an Observable notebook right into Quarto? Well, now you can.
#' Transform an Observable Notebook into a Quarto project #' #' This will yank the cells from a live Observable notebook and turn it into a Quarto project, #' downloading all the `FileAttachments` as well. #' #' @param ohq_ref either a short ref (e.g. `@@hrbrmstr/just-one-more-thing`) or a full #' URL to a published Observable notebook #' @param output_dir quarto project directory (will be created if not already present) #' @param quarto_filename if `NULL` (the default) the name will be the slug (e.g. `just-one-more-thing` #' as in the `ohq_ref` param eample) with `.qmd` suffix #' @param echo set `echo` to `true` or `false` in the YAML ohq_to_quarto

Images Powered by Shutterstock