Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
How to fix trailing garbage bug in HighCharts R?

I recently stumble across a problem using highcharts in R. When simply plotting a map of french departments :

hcmap("countries/fr/fr-all-all")

I see the following error in the prompt

Content type 'text/javascript' length 128539 bytes (125 KB)
==================================================
downloaded 125 KB

Error: parse error: trailing garbage
          [[3530,136],[3530,-689]]]}}]};
                     (right here) ------^

I tried the following but it doesn't seem to work :

remotes::install_github("jbkunst/highcharter")
library(highcharter) 
hcmap(map ="custom/world-highres2.js")

I'm not really advanced in JavaScript so I can really dive into low-level details. Furthermore, this error is new, it used to work about 2 weeks ago.

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!