Skip to content
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

Capture new code written in cell #112

Open
coatless opened this issue Nov 24, 2023 · 7 comments
Open

Capture new code written in cell #112

coatless opened this issue Nov 24, 2023 · 7 comments
Labels
p: low Address issue when time permits t: feature-request Request the addition of a new feature

Comments

@coatless
Copy link
Owner

coatless commented Nov 24, 2023

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 #14 (comment)

@coatless coatless added t: feature-request Request the addition of a new feature p: low Address issue when time permits labels Nov 24, 2023
@coatless coatless added this to the 4.x milestone Nov 25, 2023
@coatless
Copy link
Owner Author

Funny how things come full circle...

rstudio/learnr#19 (comment)

@jgeller112
Copy link

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
Copy link
Owner Author

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

@jgeller112
Copy link

That would be helpful!

@coatless coatless modified the milestones: 4.x, 4.1 Jan 30, 2024
@coatless coatless modified the milestones: 4.1, 4.2 Mar 26, 2024
@coatless
Copy link
Owner Author

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
Copy link

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

@coatless
Copy link
Owner Author

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

  • Setup - Cell 1
  • Student modified cell - Cell 2
  • Output - Cell 3
  • Interactive Unmodified - Cell 4
  • Interactive Modified - Cell 5

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: low Address issue when time permits t: feature-request Request the addition of a new feature
Projects
None yet
Development

No branches or pull requests

2 participants