Skip to content

Pre-populate quarto-drop with R code #13

@rasanderson

Description

@rasanderson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions