Skip to content

Commit

Permalink
README: note about webr::install (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
stla authored Sep 29, 2023
1 parent c767d1a commit 7eb9e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ shinylive::export("myapp2", "site", subdir = "app2")

## R package availability

To tell `{webr}` that you need to use a package outside of `{shiny}` and its dependencies, call `webr::install("CRAN_PKG")`. Once the package has been installed by `{webr}`, you can use `library(CRAN_PKG)` or `require(CRAN_PKG)` as you desire.
To tell `{webr}` that you need to use a package outside of `{shiny}` and its dependencies, call `webr::install("CRAN_PKG")` in your Quarto `shinylive-r` code block as below or within your `app.R` file if you are exporting your Shiny app. Once the package has been installed by `{webr}`, you can use `library(CRAN_PKG)` or `require(CRAN_PKG)` as you desire.

```` markdown
<!-- file: shinylive_example.qmd -->
Expand Down

0 comments on commit 7eb9e40

Please sign in to comment.