Re: rCharts/Highcharts pie chart not showing in app (ERROR: path[1]="": No such file or directory)

103 views
Skip to first unread message

Joe Cheng

unread,
Nov 23, 2015, 4:06:57 PM11/23/15
to Dylan, Shiny - Web Framework for R, Ramnath Vaidyanathan
(cc Ramnath, author of rCharts)

Can you try installing the latest Shiny changes (devtools::install_github("rstudio/shiny")) and see if you get a more useful stack trace?

On Mon, Nov 23, 2015 at 12:03 PM Dylan <djl...@gmail.com> wrote:
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.

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/81daf4ee-3e2f-463c-9552-266785ffa23e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joe Cheng

unread,
Nov 23, 2015, 4:07:46 PM11/23/15
to Dylan, Shiny - Web Framework for R, Ramnath Vaidyanathan
Oh, just saw that you figured it out.
Reply all
Reply to author
Forward
0 new messages