jbkunst / highcharter

R wrapper for highcharts
http://jkunst.com/highcharter/
Other
720 stars 148 forks source link

hcmap - Error: parse error: trailing garbage #741

Closed colantuono closed 2 years ago

colantuono commented 2 years ago

When I run hcmap() function, it downloads the data, but returns the following error:

image

library(highcharter)

hcmap(map = "countries/br/br-all") 
hcmap(map = "countries/us/us-all") 
hcmap(map = "countries/it/it-all") 
jbkunst commented 2 years ago

Hi @colantuono

Can you test de development version?

remotes::install_github("jbkunst/highcharter")
MartinGuth commented 2 years ago

@jbkunst I can confirm that your fix works! Thanks for the quick update!

jameshenry1995 commented 2 years ago

I wrote a seperate post about this, but is anyone else having issues when integrating the plots to a flexdashboard? After the first plot, they don't render for me.

The hw_grid() function, which I previously used to make ggplot-like facet plot with highcharter also only returns one plot now.

Both those issues only materialize after loading the update, they don't occur with the standard package.

colantuono commented 2 years ago

@jbkunst It worked, thanks.

dker92 commented 2 years ago

@jbkunst When the fix will be available in production ?

ahmedjoubest commented 2 years ago

Hi @jbkunst and thank you for this whole package!

Does it mean that for now it's not possible to use hcmap within shinyapps.io ?

jbkunst commented 2 years ago

Hi @ahmedjoubest

It's possible. Shinyapp.io knows the source of the package cran/github. Give it a try.

QuinHsieh commented 2 years ago

In order to improve the above problems, when I enter remotes::install_github("jbkunst/highcharter") or devtools::install_github("jbkunst/highcharter")

but returns the following error: image image

I use MAC os, how can this be solved? Thanks.

galoher commented 2 years ago

@jbkunst Hola disculpa tengo el mismo problema , ya intente con el código que pusiste pero aun así no me vale, me sigue saliendo esto, de verdad te agradecería tu ayuda. probando la URL 'https://code.highcharts.com/mapdata/countries/ec/ec-all.js' Content type 'text/javascript' length 38994 bytes (38 KB) downloaded 38 KB

Error: parse error: trailing garbage [[2454,8025],[1376,6314]]}}]}; (right here) ------^

jbkunst commented 2 years ago

hola @galoher! debes instalar la versión de desarrollo https://github.com/jbkunst/highcharter/issues/741#issuecomment-990340644

jbkunst commented 2 years ago

@dker92

@jbkunst When the fix will be available in production ?

It will be soon, according to CRAN I have until January 5 to fix the error.

galoher commented 2 years ago

@jbkunst te agradezco mucho, ya me valió de verdad muchas gracias colega