Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
royfrancis committed Sep 30, 2023
1 parent db55c1f commit 1c8a28e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
fontawesome: true
- run: |
quarto --version
- name: Render and publish
Expand Down
30 changes: 20 additions & 10 deletions documents/webr/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,23 @@ filters:
- webr
---

## Demo
## Installation

Install webr extension for qurto by running:

```bash
quarto add coatless/quarto-webr
```

then add to yaml:

```yaml
webr:
channel-type: "post-message"
engine: knitr
filters:
- webr
```
webR-enabled code cell are established by using `{webr-r}` in a Quarto HTML document.

Expand All @@ -44,9 +60,9 @@ plot(pressure)
### Packages
#### Available Packages

You can view what packages are available for webR by either executing the following R code (either with WebR or just R):
You can view what packages are available for webR by either executing the following R code (either with WebR or just R). This chunk is an R chunk that is not evaluated.

```{webr-r}
```{r,eval=FALSE}
available.packages(
repos = "https://repo.r-wasm.org/",
type = "source"
Expand Down Expand Up @@ -107,13 +123,7 @@ add_one(2)
```

### Prior code cell

```{webr}
```

### Pre-rendered code cell
### Pre-rendered R code cell

```{r}
message("Hello!")
Expand Down

0 comments on commit 1c8a28e

Please sign in to comment.