I've seen this issue discussed elsewhere but I was not able to correct my issue using the discussions in these locations:
Im not sure if this is a Shiny issue or an rCharts issue....
Here is my sessionInfo() :
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rCharts_0.4.5 magrittr_1.5 plyr_1.8.3 shinyjs_0.2.3
[5] RMySQL_0.10.6 DBI_0.3.1 gtools_3.5.0 reshape_0.8.5
[9] D3TableFilter_0.5 htmlwidgets_0.5 DT_0.1.40 dplyr_0.4.3
[13] shiny_0.12.2 shinyapps_0.4.1.8
loaded via a namespace (and not attached):
[1] Rcpp_0.12.2 rstudioapi_0.3.1 whisker_0.3-2 lattice_0.20-33
[5] xtable_1.8-0 R6_2.1.1 tools_3.2.2 grid_3.2.2
[9] parallel_3.2.2 packrat_0.4.6-1 htmltools_0.2.9 yaml_2.1.13
[13] assertthat_0.1 digest_0.6.8 RJSONIO_1.3-0 bitops_1.0-6
[17] RCurl_1.95-4.7 mime_0.4 BiocInstaller_1.18.5 jsonlite_0.9.17
[21] httpuv_1.3.3 rstudio_0.98.976
Here is the relevant part of server.R
output$Composition = renderChart2({
FoodDatabase <- rename(FoodDatabase, c("Cat. 1"="Category"))
freq <- count(FoodDatabase, "Category")
a <- rCharts::Highcharts$new()
a$chart(x = "Category", y = "freq", data = freq, type = "pie")
a$plotOptions(pie = list(size = 350))
a$chart(backgroundColor = NULL)
a$set(dom = 'Composition')
a
})
and in ui.R
div(showOutput("Composition", "Highcharts"), class = "span6"))
Any suggestions are appreciated.