Skip to content
Snippets Groups Projects
README.md 1.3 KiB
Newer Older
William Warriner's avatar
William Warriner committed
# Quarto Experiment

## How to build demo `quarto.qmd`

1. Build `conda` environment from `environment.yml`.
William Warriner's avatar
William Warriner committed
1. Run `quarto render`. This should be very fast.

## How to create PDF

### Setup

1. Install `npm`.
1. `npm install -g decktape` for global install.

### Repeat

1. `decktape reveal _output/quarto.html _output/quarto.pdf --screenshots-size=1280x720 --fragments=disable` or any other size in px. This takes awhile.
William Warriner's avatar
William Warriner committed

## How to use Shiny

1. Install `R`: <https://www.r-project.org/>
1. Open RGui or use the R REPL at the terminal.
1. `install.packages("rmarkdown")`
1. `install.packages("reticulate")`
1. `install.packages("shiny")`
1. Any other packages you need for the code you're using. This example repo needs the following.
   - `install.packages("ggplot2")`
William Warriner's avatar
William Warriner committed
1. Use `quarto serve shiny.rmd` to run the Shiny example.
    - Theming currently does not work

### VSCode Integration

1. Install R extension `REditorSupport.r`
1. Open RGui or use the R REPL at the terminal.
1. `install.packages("languageserver")` for linting, formatting, etc.
1. `install.packages("httpgd")` for plotting.

William Warriner's avatar
William Warriner committed
## TODO

- [ ] Finish syntax highlighting.
    - [x] Python (I think)
    - [ ] R
    - [ ] Markdown
    - [ ] ??
William Warriner's avatar
William Warriner committed
- [ ] .prettierrc file from Revealjs template repo
    - [ ] CSS
William Warriner's avatar
William Warriner committed
- [ ] Markdown formatting config from docs repo