Skip to content

Commit

Permalink
move comments out of visible chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelru committed Apr 16, 2024
1 parent 39f8f23 commit f5b8f64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions book/shinylive.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ Global shinylive configuration is available in the `_quarto.yaml` file.

Modify the code below and run it to see the results.

<!--
we have to put some code upfront
- need to setup repos on r-universe - currently it's not possible to setup this elsewhere (e.g. shinylive config or chunk attribute)
- currently shinylive is using [email protected] which is missing a feature of shimming `library()` calls - need to add this manually
--!>
```{r shinylive-constructor, echo=FALSE, results='asis'}
text <- unlist(c(
"```{shinylive-r}",
Expand All @@ -25,8 +30,6 @@ text <- unlist(c(
"if (packageVersion(\"webr\") < \"0.3.0\") {",
" .e <- as.environment(\"webr_shims\")",
" .e[[\"library\"]] <- function(pkg, ...) {",
" # https://github.com/quarto-ext/shinylive/issues/48",
" # simplified copy of webr::library_shim from the higher version of webr package",
" package <- as.character(substitute(pkg))",
" if (length(find.package(package, quiet = TRUE)) == 0) {",
" webr::install(package)",
Expand Down

0 comments on commit f5b8f64

Please sign in to comment.