Nothing
Code
qmd_to_r_script("nonexistent.qmd")
Condition
Error:
! File 'nonexistent.qmd' does not exist.
> Please provide a valid Quarto document.
Code
qmd_to_r_script(resources_path("purl-r.qmd"), script = r_script)
Condition
Error in `qmd_to_r_script()`:
! File <r script> already exists.
> Please provide a new file name or remove the existing file.
Code
qmd_to_r_script(resources_path("purl-r-ojs.qmd"), r_script)
Message
Extracting only R code cells from 'resources/purl-r-ojs.qmd'.
> Other languages will be ignored (found ojs).
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.