You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Re-direct styling to new top-level document
* Bring online the blog template
* Add disclaimer on RevealJS usage.
* Add RevealJS Template
* Add blog example
* Add gitignores
* newline at the end of the file
* Add blog case
* Add blog render
Copy file name to clipboardExpand all lines: README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# webR Extension for Quarto
2
2
3
-
This extension enables the [webR](https://docs.r-wasm.org/webr/latest/) code cell within various [Quarto](https://quarto.org/) formats, including [HTML](https://quarto.org/docs/output-formats/html-basics.html), [Websites](https://quarto.org/docs/websites/), and [Books](https://quarto.org/docs/books).
3
+
This extension enables the [webR](https://docs.r-wasm.org/webr/latest/) code cell within various [Quarto](https://quarto.org/) formats, including [HTML](https://quarto.org/docs/output-formats/html-basics.html), [Websites](https://quarto.org/docs/websites/), [Blogs](https://quarto.org/docs/websites/website-blog.html), and [Books](https://quarto.org/docs/books).
4
4
5
5

6
6
@@ -68,6 +68,8 @@ During the execution, the filter adds two files to the working directory: `webr-
68
68
69
69
There are many more customization options that are available. Please see the [customization documentation](https://quarto-webr.thecoatlessprofessor.com/qwebr-meta-options.html) for more examples.
70
70
71
+
For specific deployment usage cases, please see [Templates](https://quarto-webr.thecoatlessprofessor.com/qwebr-deployment-templates.html).
72
+
71
73
## Help
72
74
73
75
For troubleshooting help, please see our [troubleshooting page](https://quarto-webr.thecoatlessprofessor.com/qwebr-troubleshooting.html).
Copy file name to clipboardExpand all lines: docs/index.qmd
+2-2
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ filters:
7
7
- webr
8
8
---
9
9
10
-
Welcome to the documentation portal for the [`quarto-webr`](https://github.com/coatless/quarto-webr) extension – your key to unlocking the endless possibilities of [webR](https://docs.r-wasm.org/webr/latest/) within various [Quarto](https://quarto.org/) formats, including [HTML](https://quarto.org/docs/output-formats/html-basics.html), [Websites](https://quarto.org/docs/websites/), and [Books](https://quarto.org/docs/books).
10
+
Welcome to the documentation portal for the [`quarto-webr`](https://github.com/coatless/quarto-webr) extension – your key to unlocking the endless possibilities of [webR](https://docs.r-wasm.org/webr/latest/) within various [Quarto](https://quarto.org/) formats, including [HTML](https://quarto.org/docs/output-formats/html-basics.html), [Websites](https://quarto.org/docs/websites/), [Blogs](https://quarto.org/docs/websites/website-blog.html), and [Books](https://quarto.org/docs/books).
11
11
12
12
Ready for an exciting journey into the world of webR's interactive code cells? Click the "Run Code" button below to experience it firsthand:
13
13
@@ -19,6 +19,6 @@ model = lm(mpg ~ wt, data = mtcars)
19
19
summary(model)
20
20
```
21
21
22
-
At its core, the [quarto-webr extension](https://github.com/coatless/quarto-webr) is designed to empower you to run R code directly in your web browser using familiar reporting tools, all without the need for an external R server. Moreover, the extension abstracts away the need to know HTML or JavaScript to use webR. However, it's worth noting that you can also choose to unlock the full potential of webR and create more complex applications independently by directly using [webR's JavaScript API](https://docs.r-wasm.org/webr/latest/evaluating.html), granting you unparalleled freedom to harness the power of R in innovative ways.
22
+
At its core, the [`quarto-webr` extension](https://github.com/coatless/quarto-webr) is designed to empower you to run R code directly in your web browser using familiar reporting tools, all without the need for an external R server. Moreover, the extension abstracts away the need to know HTML or JavaScript to use webR. However, it's worth noting that you can also choose to unlock the full potential of webR and create more complex applications independently by directly using [webR's JavaScript API](https://docs.r-wasm.org/webr/latest/evaluating.html), granting you unparalleled freedom to harness the power of R in innovative ways.
23
23
24
24
With this in mind, let's dive in and kickstart your journey with interactive code cells by [creating our very first webR-powered Quarto document](qwebr-first-steps.qmd) or [exploring some examples](qwebr-code-cell-demos.qmd)!
Copy file name to clipboardExpand all lines: docs/qwebr-deployment-templates.qmd
+21-5
Original file line number
Diff line number
Diff line change
@@ -11,20 +11,36 @@ Discover a range of sample deployment templates for the `quarto-webr` extension
11
11
This template is designed for creating standalone HTML documents with interactive webR functionality. It's suitable for individual reports or interactive documents.
12
12
13
13
-**Example**: You can find an example of an HTML document template [here](https://quarto-webr.thecoatlessprofessor.com/examples/html-document/).
14
-
-**Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/docs/examples/html-document).
14
+
-**Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/examples/html-document).
15
+
16
+
# RevealJS Presentation Template
17
+
18
+
This template is designed for creating standalone RevealJS presentations with interactive webR functionality. It's suitable for creating lecture slides.
19
+
20
+
:::{.callout-important}
21
+
This template requires a [**pre-release** version of Quarto](https://quarto.org/docs/download/prerelease) that contains an updated copy of `pandoc`. For more details, please see [Issue #14](https://github.com/coatless/quarto-webr/issues/14).
22
+
:::
23
+
24
+
-**Example**: You can find an example of an HTML document template [here](https://quarto-webr.thecoatlessprofessor.com/examples/revealjs/).
25
+
-**Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/examples/revealjs).
15
26
16
27
# Website Template
17
28
18
-
This template is meant for building interactive websites with multiple webR-powered pages. It's ideal for creating blog posts, educational platforms, or any web content that requires interactive data analysis.
29
+
This template is meant for building interactive websites with multiple webR-powered pages. It's ideal for websites that have multiple piece of web content that requires interactive data analysis at the "top-level".
19
30
20
31
-**Example**: Explore an example of a website template [here](https://quarto-webr.thecoatlessprofessor.com/examples/website/).
21
-
-**Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/docs/examples/website).
32
+
-**Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/examples/website).
22
33
34
+
# Blog Template
35
+
36
+
For users who want to periodically use webR on their Quarto blog, please use the following template.
37
+
38
+
-**Example**: Explore an example of a blog website template [here](https://quarto-webr.thecoatlessprofessor.com/examples/blog/).
39
+
-**Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/examples/blog).
23
40
24
41
# Book Template
25
42
26
43
The book template is designed for creating interactive web-based books or documentation. It allows you to compile a collection of chapters, sections, and interactive content into a cohesive digital book.
27
44
28
45
-**Example**: You can view an example of a book template [here](https://quarto-webr.thecoatlessprofessor.com/examples/book).
29
-
-**Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/docs/examples/book).
30
-
46
+
-**Source Code**: Access the source code for this template [here](https://github.com/coatless/quarto-webr/tree/main/examples/book).
Copy file name to clipboardExpand all lines: docs/qwebr-faq.qmd
+1-39
Original file line number
Diff line number
Diff line change
@@ -87,42 +87,4 @@ Error messages, warnings, and other diagnostic information are presented in the
87
87
88
88
> Q. Is it possible to style the UI elements the quarto-webr extension add to your document? Do they get affected by styling/theme changes so things look coherent?
89
89
90
-
Certainly! You have the flexibility to style the UI elements added by the `quarto-webr` extension to your document. These elements are categorized into three distinct areas, each of which can be styled individually. They are identifiable by their unique `id` and `class` attributes:
91
-
92
-
1.**Interactive Code Editor**: This is where you input and edit your R code.
93
-
-`id`: `#webr-editor-{{ID}}`
94
-
-`class`: `.webr-editor`
95
-
96
-
2.**Output Area**: This is where the results and output of your R code are displayed.
97
-
-`id`: `#webr-code-stdout-{{ID}}`
98
-
-`class`: `.webr-code-stdout`
99
-
100
-
3.**Run Button**: The button that triggers the execution of your R code.
101
-
-`id`: `#webr-btn-run-{{ID}}`
102
-
-`class`: `.webr-btn-run`
103
-
104
-
The `{{ID}}` in these identifiers represents the instance of the element on the page, such as the first, second, or nth occurrence. By targeting the specific `id` or `class` attributes in your document's CSS or by including a separate CSS file, you can control their appearance as per your design preferences.
105
-
106
-
For example, you can insert new CSS elements by using:
107
-
108
-
````markdown
109
-
```{=html}
110
-
<style>
111
-
.webr-code-stdout {background-color: powderblue;}
112
-
.webr-btn-run {color: blue;}
113
-
</style>
114
-
```
115
-
````
116
-
117
-
Additionally, if you are using a Quarto theme, you can leverage [theme-specific styling options](https://quarto.org/docs/output-formats/html-themes.html#basic-options) to ensure that these UI elements align with the overall theme of your document.
118
-
119
-
````markdown
120
-
---
121
-
title: My post
122
-
format:
123
-
html:
124
-
theme:
125
-
- cosmo
126
-
- custom.scss
127
-
---
128
-
````
90
+
Certainly! You have the flexibility to style the UI elements added by the `quarto-webr` extension to your document. For more details, please see [Theming Elements](qwebr-theming.qmd).
This is a post with interactive code on a [Quarto Blog](https://quarto.org/docs/websites/website-blog.html) through the [`quarto-webr`](https://github.com/coatless/quarto-webr) extension. The configuration setup for the `quarto-webr` extension is taken care of in the `_quarto.yml` file to avoid needing to re-specify options multiple times.
Copy file name to clipboardExpand all lines: examples/book/slide-embed.qmd
+4
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@ On this page, we show how we can embed a RevealJS Presentation inside of a Quart
6
6
7
7
## Presentation
8
8
9
+
:::{.callout-important}
10
+
For `quarto-webr` to work within RevealJS, you must use a [**pre-release** version of Quarto](https://quarto.org/docs/download/prerelease) that contains an updated copy of `pandoc`. For more details, please see [Issue #14](https://github.com/coatless/quarto-webr/issues/14).
Copy file name to clipboardExpand all lines: examples/revealjs/index.qmd
+4-4
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,11 @@ filters:
15
15
16
16
Welcome to a demo RevealJS presentation that uses the [`quarto-webr`](https://github.com/coatless/quarto-webr) extension to generate interactive code cells with [Quarto](https://quarto.org) and [webR](https://docs.r-wasm.org/webr/latest/).
17
17
18
-
```{webr-r}
19
-
print("Hello there! Welcome to a quarto-webR powered revealjs presentation!")
20
-
```
18
+
:::{.callout-important}
19
+
This template requires a [**pre-release** version of Quarto](https://quarto.org/docs/download/prerelease) that contains an updated copy of `pandoc`. For more details, please see [Issue #14](https://github.com/coatless/quarto-webr/issues/14).
20
+
:::
21
21
22
-
Let's go back to the [documentation portal](../../)
22
+
Not the right template? Let's go back to the [documentation portal](../../)
Copy file name to clipboardExpand all lines: examples/website/slide-embed.qmd
+4
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@ On this page, we show how we can embed a RevealJS Presentation inside of a Quart
6
6
7
7
## Presentation
8
8
9
+
:::{.callout-important}
10
+
For `quarto-webr` to work within RevealJS, you must use a [**pre-release** version of Quarto](https://quarto.org/docs/download/prerelease) that contains an updated copy of `pandoc`. For more details, please see [Issue #14](https://github.com/coatless/quarto-webr/issues/14).
0 commit comments