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

Highcharter doesn't work in updated Rstudio & R. #619

Closed
jhk0530 opened this issue Apr 27, 2020 · 9 comments
Closed

Highcharter doesn't work in updated Rstudio & R. #619

jhk0530 opened this issue Apr 27, 2020 · 9 comments

Comments

@jhk0530
Copy link

jhk0530 commented Apr 27, 2020

I tried this demo code.

and it doesn't plot in viewer panel in R studio.

Instead, it takes a lot of CPU usage and crashed.

When I run this code in RGui (not R studio) it worked.

So I think this doesn't related with updated version of R itself.

highchart() %>% 
  hc_chart(type = "column") %>% 
  hc_title(text = "A highcharter chart") %>% 
  hc_xAxis(categories = 2012:2016) %>% 
  hc_add_series(data = c(3900,  4200,  5700,  8500, 11900),
                name = "Downloads")

I'm not sure about whether this problem is caused by Rstudio or Highcharter.

  • Rstudio Version 1.2.5042
  • Highcharter Version 0.7.0.9001
@mtyszler
Copy link

Hi @jhk0530

I also figured there was an issue with other highcharts I had.

My conclusion was that the problem is related to R 4.0.0, since with the latest R studio and R 3.6.3 it all works, but not with R 4.0.0.

You can see the changes within R 4.0.0 here.

I couldn't track the exact issue, but I suspect has to do with the plot function changes, but I could be wrong

@mtyszler
Copy link

mtyszler commented May 5, 2020

Hi @jbkunst . Do you know what update in R 4.0.0 are crashing highcharts?

@jbkunst
Copy link
Owner

jbkunst commented May 5, 2020

Hi @jhk0530 @mtyszler

@jhk0530, what OS do you have? I tested on windows and I replicated having the same behaviour.

@mtyszler
Copy link

mtyszler commented May 5, 2020

I used in windows 10.

I compared the older R studio to the newest R studio, both in combination with R 4.0 and R 3.6.

The problem happened only with R 4.0, regardless of the R studio version.

@jhk0530
Copy link
Author

jhk0530 commented May 5, 2020

same I used win 10.

I think this isn't only issue with highcharter.

some shiny functions also make Rstudio viewer panel to crash.

@jbkunst
Copy link
Owner

jbkunst commented May 6, 2020

Doy you have a reprex for thas shiny functions? I'll open an issue to https://github.com/rstudio/rstudio

@jhk0530
Copy link
Author

jhk0530 commented May 6, 2020

here's one example with my own CRAN package shinyCyJS.

install.packages('shinyCyJS')
library(shinyCyJS)
shinyCyJS(list(buildNode('a'), buildNode('b'), buildEdge('a','b')))

It should plot graph in viewer panel like below ( this is from 3.6.3 )

image

but it frozen in R 4.0


I found there's already issue with this, include DT, leaflet.
rstudio/rstudio#6737

@mtyszler
Copy link

Check if rstudio/rstudio#6737 fixes it

@jhk0530
Copy link
Author

jhk0530 commented May 28, 2020

It seems this issues has fixed in Rstudio version 1.3.

I'll close this issue

@jhk0530 jhk0530 closed this as completed May 28, 2020
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

3 participants