RStudio interface demonstrating WebR REPL link inclusion functionality. The left pane shows R source code with roxygen2 documentation for "Test WebR REPL Link Inclusion." The right pane displays package documentation with a blue "View in webR REPL" button. A firefox browser window is open showing the WebR REPL interface with simple R code (1 + 1) and R session information including details about contributors, demos, and help functions. The interface shows the same rocletter package documentation as the first image.
RStudio interface showing R package documentation with embedded WebR REPL functionality. The left pane contains R source code with roxygen2 comments, including a @examplesWebR tag and demo functions. The right pane displays package documentation for "Test WebR REPL Embedded Inclusion" with an embedded WebR REPL interface showing a ggplot2 example. The WebR interface contains code (library(ggplot2), ggplot(mtcars, aes(mpg, wt)) + geom_point() + theme_minimal()) and displays a scatter plot visualization. The bottom shows an R console with package loading messages in red text.
Experimenting with `@examplesWebR` - a new roxygen2 tag that makes R package examples interactive!
Instead of static code blocks, users get "View in webR REPL" buttons that open examples in their browser or the embedded webR REPL. No R installation needed!
🧵1/2 #rstats #webR