This package provide an RStudio add-in wrapper around the rpivotTable HTML widget based on Nicolas Kruchten's pivotTable.js.
install.packages(c("shiny","miniUI","rstudioapi","ggplot2","dplyr","shinyAce","whisker","tidyr","DT","rpivotTable"))
devtools::install_github("dkilfoyle/rpivotGadget")
Currently depends on a custom version of MiniUI due to a bug in the tabStrip. It will still work without this but you will need to click in the ACE editor before the text will update. This does not effect the pivot table function.
update 4/4/16 Now using a javascript hack so you can use the standard CRAN MiniUI
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.