The webex package

The goal of webex is to enable instructors to easily create web documents that students can use in self-guided learning.


You can install the development version of webex from GitHub with:


The webex package provides a number of functions that you use in inline R code to create HTML widgets (text boxes, pull down menus, buttons that reveal hidden content). Examples are provided in the Web Exercises R Markdown template.

To create a file from the webex template in RStudio, click File -> New File... -> RMarkdown and in the dialog box that appears, select From Template and choose Web Exercises.

Alternatively (or if you’re not using RStudio) use:

rmarkdown::draft("exercises.Rmd", "webex", "webex")

Knit the file to HTML to see how it works. Note: The widgets only function in a JavaScript-enabled browser. The RStudio built-in browser does not have JavaScript. Click the “Open in Browser” button to use your operating system’s browser.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.