Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphs do not display with shiny #54

Open
fderyckel opened this issue May 13, 2015 · 9 comments
Open

graphs do not display with shiny #54

fderyckel opened this issue May 13, 2015 · 9 comments

Comments

@fderyckel
Copy link

Hi all,

Altough I have no problem using dygrpah from Rstudio normally, none of the dygraph display once I use shiny.

I am using a MacbookPro 10.10 (but similar issue on mac desktop).
I have tried to use both your example of shiny (the one here: https://rstudio.github.io/dygraphs/shiny.html),
I have also try to use my own (http://stackoverflow.com/questions/30176303/using-dygraph-with-shiny/30178925?noredirect=1#comment48475753_30178925)

But none of the graph display, although the whole shiny app display correctly. (just the graph is not there :-(

Version:

version
_
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 2.0
year 2015
month 04
day 16
svn rev 68180
language R
version.string R version 3.2.0 (2015-04-16)
nickname Full of Ingredients

dygraph taken from github.

Any idea why the graphs are not displaying?
Thanks

@fderyckel
Copy link
Author

And what is really weird, is that both this person (https://faidherbard.shinyapps.io/joburgdygraph/)
and I (https://frankyd.shinyapps.io/shinyApps4dygraph/)
have the same code, but mine is not displaying the graph!

@jjallaire
Copy link
Member

Dygraphs definitely work in Shiny. I'd recommend making sure you are using
a recent version of Shiny and the other related packages like htmlwidgets.
You can try comparing the output of sessionInfo() for the two applications
to understand which packages may be of different versions.

On Wed, May 13, 2015 at 2:30 PM, François notifications@github.com wrote:

And what is really weird, is that both this person (
https://faidherbard.shinyapps.io/joburgdygraph/)

and I (https://frankyd.shinyapps.io/shinyApps4dygraph/)
have the same code, but mine is not displaying the graph!


Reply to this email directly or view it on GitHub
#54 (comment).

@fderyckel
Copy link
Author

Sorry I did not want to give the impression that dygraph did not work with shiny. I know it works very well with it,that's why I wanted to use it ;-) R is 3.2, dygraph is 0.4.4.1 and shiny is 0.11.1. But then why when I publish my app on shinyapps.io, mine doesn't work. Wouldn't the server of shinyapps.io have the same packages for all?

> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.1 (Yosemite)

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] dygraphs_0.4.4.1 shiny_0.11.1    

loaded via a namespace (and not attached):
 [1] Rcpp_0.11.6       lattice_0.20-31   zoo_1.7-12        digest_0.6.8      mime_0.3         
 [6] grid_3.2.0        R6_2.0.1          jsonlite_0.9.16   xtable_1.7-4      magrittr_1.5     
[11] rstudioapi_0.3.1  xts_0.9-7         RJSONIO_1.3-0     tools_3.2.0       htmlwidgets_0.3.3
[16] httpuv_1.3.2      yaml_2.1.13       htmltools_0.2.6   rstudio_0.98.1091

@jjallaire
Copy link
Member

No, it uses whatever package versions were on your system at the time you
published the application.

On Wed, May 13, 2015 at 2:36 PM, François notifications@github.com wrote:

Sorry I did not want to give the impression that dygraph did not work with
shiny. I know it works very well with it,that's why I wanted to use it ;-)
R is 3.2, dygraph is 0.4.4.1 and shiny is 0.11.1. But then why when I
publish my app on shinyapps.io, mine doesn't work. Wouldn't the server of
shinyapps.io have the same packages for all?


Reply to this email directly or view it on GitHub
#54 (comment).

@fderyckel
Copy link
Author

Ok. Thanks for that clarification. But I still think I have the latest version of everything as I have updated all packages. so I am still missing something ...

@jjallaire
Copy link
Member

I just took that sample code and was able to run it locally as well as
successfully deploy and run it on shinyapps. Not sure what is going on for
you. Here is my sessionInfo:

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] dygraphs_0.4.3 shiny_0.11.1.9003

loaded via a namespace (and not attached):
[1] digest_0.6.8 grid_3.1.3 htmltools_0.2.6
htmlwidgets_0.3.2 httpuv_1.3.2
[6] jsonlite_0.9.16 lattice_0.20-30 magrittr_1.5 mime_0.2
R6_2.0
[11] Rcpp_0.11.6 RJSONIO_1.2-0.2 rsconnect_0.3.78 rstudioapi_0.2
tools_3.1.3
[16] xtable_1.7-4 xts_0.9-7 yaml_2.1.13 zoo_1.7-11

On Wed, May 13, 2015 at 2:41 PM, François notifications@github.com wrote:

Ok. Thanks for that clarification. But I still think I have the latest
version of everything as I have updated all packages. so I am still missing
something ...


Reply to this email directly or view it on GitHub
#54 (comment).

@chaoshunh
Copy link

I got same issue not to display the graph in Rstudio

@skofieldO5
Copy link

Same problem here.

1 similar comment
@mariafb
Copy link

mariafb commented Apr 23, 2020

Same problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants