coatless / quarto-webr

Community developed Quarto Extension to Embed webR for HTML Documents, RevealJS, Websites, Blogs, and Books.
https://quarto-webr.thecoatlessprofessor.com/
390 stars 19 forks source link

Capture new code written in cell #112

Open coatless opened 11 months ago

coatless commented 11 months ago

Will open up a new issue if need be, but is there a way to capture new code written on the slides to be saved.

Originally posted by @jgeller112 in https://github.com/coatless/quarto-webr/issues/14#issuecomment-1825981888

coatless commented 10 months ago

Funny how things come full circle...

https://github.com/rstudio/learnr/issues/19#issue-209793229

jgeller112 commented 10 months ago

One workaround is to view the slides as pdf and this will allow you to make changes to the code and save as pdf

coatless commented 9 months ago

@jgeller112 would adding a button onto the slide deck that exports all code cells (setup/output/interactive) into a .R script be okay?

jgeller112 commented 9 months ago

That would be helpful!

coatless commented 4 months ago

I had some time to think about this more... How do you feel about this kind of icon placement/shortcut code?

RevealJS

Screenshot 2024-06-12 at 11 26 29 AM

HTML Document

Screenshot 2024-06-12 at 11 29 59 AM
jgeller112 commented 4 months ago

Hmm. I think this could work. Would the R history document just be R script?

coatless commented 4 months ago

It would be a .Rhistory-like script; but only containing the last portions active + startup code, e.g.

You can see part of the workflow for seeing the entire session history here:

Revealjs

qwebr-demo-r-history-revealjs

HTML Document

qwebr-demo-r-history-html