ramnathv / rMaps

Interactive Maps from R
http://rmaps.github.io
389 stars 194 forks source link

add rjson to imports #119

Closed PedramNavid closed 4 years ago

PedramNavid commented 6 years ago

in Crosslet.R, you use chartParams = rjson::toJSON(params[names(params) != 'dimensions'])

when installing and running the demo I received the following:

> library(rMaps)
> crosslet(
+   x = "country", 
+   y = c("web_index", "universal_access", "impact_empowerment", "freedom_openness"),
+   data = web_index
+ )
Error in loadNamespace(name) : there is no package called ‘rjson’

Adding rjson to the DESCRIPTION should ensure it is installed as a dependency.