Question

The example code provided in the git repo is leading to an error when I try to run it.

Here is the code:

    h1 <- Highcharts$new()
    h1$chart(type = "spline")
    h1$series(data = c(1, 3, 2, 4, 5, 4, 6, 2, 3, 5, NA), dashStyle = "longdash")
    h1$series(data = c(NA, 4, 1, 3, 4, 2, 9, 1, 2, 3, 4), dashStyle = "shortdot")
    h1$legend(symbolWidth = 80)
    h1

I got it from https://github.com/ramnathv/rCharts

It is producing the following error: Error in setListSpec(params$series, ..., replace = replace) : cannot change value of locked binding for 'obj'

Do I need to install Highcharts separately? I have verified that my installation of rCharts is working. Thanks in advance!

Was it helpful?

Solution

Re-installing rCharts and deleting all the environment variables prior to running the code solved this problem. If I come across it again, I will post sessionInfo().

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top