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

Pre-populate quarto-drop with R code #13

Open
rasanderson opened this issue Oct 23, 2024 · 1 comment
Open

Pre-populate quarto-drop with R code #13

rasanderson opened this issue Oct 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@rasanderson
Copy link

rasanderson commented Oct 23, 2024

Hello
This is a really useful extension. Just wondering if there is a way to pre-populate the Quarto Drop editor with some example R code to show during the presentation, rather than copy-and-paste. I've tried changing the YAML to

format: 
  revealjs:
    revealjs-plugins: 
      - drop
    drop:
      engine: webr
      webr:
        init:
          - "init.R"
        packages:
          - ggplot2

But any code in init.R isn't being detected and displayed in the drop-down.

@georgestagg georgestagg added the enhancement New feature or request label Nov 13, 2024
@georgestagg
Copy link
Member

Not currently, but I think it's a good idea and something that we should support in a future version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants