Publications by Jeff Allen
Package-Wide Variables/Cache in R Packages
It’s often beneficial to have a variable shared between all the functions in an R package. One obvious example would be the maintenance of a package-wide cache for all of your functions. I’ve encountered this situation multiple times and always forget at least one important step in the process, so I thought I’d document it here for myself a...
7711 sym R (1145 sym/11 pcs)
Dallas R Users: Creating R Packages this Saturday, 6/29
I’ll be presenting at the Dallas R Users Group next Saturday at 10:00AM at the University of Dallas on how to reproduce your R code. We’ll review how to use R scripts, how to embed R code in reproducible documents, and then introduce how to create your own R packages based on your R code. At the end of the afternoon, you’ll be familiar with...
1208 sym
Reproducing R: Scripts, Documents, and Packages
I’m sharing the slides from the talk I’ll be giving at the Dallas R Users Group on creating R packages (and other techniques for reproducing R). I’ll introduce R scripts, reproducible R documents, and R packages. We’ll use the knitr, devtools, and roxygen2 packages in the examples. Download the slides here. If you’re unable to make the ...
838 sym
Interactive 3D in Shiny (shinyRGL)
The rgl package has been used to produce rich, interactive 3D graphics within R using the OpenGL framework for some time. The rgl authors also added the ability to export to WebGL, allowing R authors to produce interactive 3D graphics that were accessible from within any modern web browser. This functionality can now be leveraged within the Shi...
2117 sym R (28 sym/1 pcs) 1 img
Ace Code Editor in Shiny (shinyAce)
The Ace code editor is an elegant, full-featured, browser-based code editor used in such products as RStudio’s IDE. We’re announcing a new R package called shinyAce (now available on CRAN) which integrates the Ace editor into the Shiny web framework. For those who may be unfamiliar, Shiny is an R package which makes it trivial to create i...
2018 sym R (203 sym/2 pcs)
shinyTree: jsTree + shiny
We’re happy to announce the release of our latest R package, shinyTree. shinyTree is an integration of the jsTree library with the Shiny interactive web framework for R, which makes it simple for R developers to create web applications without knowing anything about HTML or JavaScript. You can view a live demo of one application here. shinyTree...
1741 sym R (238 sym/2 pcs)
shinyStore – Persistent Client-Side Storage in Shiny
We’re thrilled to announce the availability of shinyStore, an R package that enables HTML5 Web Storage from Shiny, an interactive web application framework for R. A live demo of an example application is available here. Set a text value then refresh the page, or close the tab and come back in a new tab. You’ll find that any tab in that browse...
1534 sym R (239 sym/2 pcs)
rapier — Convert R Code to a Web API
I’m excited to announce a new R package: rapier, a package that enables you to convert your existing R code into web APIs by merely adding a couple of special comments. Take a look: # myfile.R #' @get /mean normalMean <- function(samples=10){ data <- rnorm(samples) mean(data) } #' @post /sum addTwo <- function(a, b){ as.numeric(a) + as....
3049 sym R (404 sym/3 pcs)