You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/blog/posts/2025-xx-xx-R-package-release-1.5/index.qmd
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ These helper functions wrap content in HTML spans with `data-qmd-base64` attribu
119
119
120
120
### Extract R Code from Quarto Documents
121
121
122
-
The new `qmd_to_r_script()` function provides an alternative to `knitr::purl()` that leverages `quarto inspect` for code extraction:
122
+
The new `qmd_to_r_script()`<ahref='https://lifecycle.r-lib.org/articles/stages.html#experimental'><imgsrc='https://img.shields.io/badge/lifecycle-experimental-orange.svg'alt='Experimental lifecycle'></a> function provides an alternative to `knitr::purl()` that leverages `quarto inspect` for code extraction:
This function uses Quarto's static document analysis rather than R evaluation, making it faster and safer for simple code extraction. It preserves cells options as spin-style headers, commenting cells with `eval: false`, and ignoring content having `purl: false`. For documents using advanced knitr features like `child=` chunks or `knitr::read_chunk()`, `knitr::purl()` remains the recommended approach as it handles these through actual document processing.
132
+
This function uses Quarto's static document analysis rather than R evaluation, making it faster and safer for simple code extraction. It preserves cells options, commenting cells with `eval: false`, and ignoring content having `purl: false`. For documents using advanced knitr features like `child=` chunks or `knitr::read_chunk()`, `knitr::purl()` remains the recommended approach as it handles these through actual document processing.
0 commit comments