Skip to content

Add a function to "purl" qmd to R script: qmd_to_r_script() #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jul 8, 2025
Merged

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Jul 4, 2025

This closes #208 and relates to discussion at quarto-dev/quarto-cli#9112

This function will using quarto inspect to get the R cell information and write them in a R script, while keeping the metadata as comment above the cell.

This makes the format compatible with Quarto script rendering feature: https://quarto.org/docs/computations/render-scripts.html#knitr

@cderv
Copy link
Collaborator Author

cderv commented Jul 4, 2025

That is new... something makes the test hang on Windows which I can't repro locally 🤔

@cderv cderv merged commit 96f9e7d into main Jul 8, 2025
16 checks passed
@cderv cderv deleted the extract-cell branch July 8, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a function to extract cell code from a .qmd document
1 participant