SymbolixAU / mapdeck

R interface to Deck.gl and Mapbox
https://symbolixau.github.io/mapdeck/articles/mapdeck.html
363 stars 40 forks source link

Error in mapboxgl #309

Closed MasterPasta closed 4 years ago

MasterPasta commented 4 years ago

I get this error on R when I try to use mapdeck: Error in mapboxgl() : could not find function "mapboxgl" I have asked mapbox support but they couldn't help, I think I missed something on installation?

SymbolixAU commented 4 years ago

Can you post the R code you've used, and where do you see the error?

MasterPasta commented 4 years ago

I just did mapdeck(token = key) to generate map, I got it working by using R studio on macOS. On windows I get that error even tho I tried install different versions of R including latest one

SymbolixAU commented 4 years ago

can you share a screenshort of the code and the error being generated? And also your sessionInfo() output please?

MasterPasta commented 4 years ago

https://prnt.sc/t2av1x

SymbolixAU commented 4 years ago

Can you clear all your objects from your session, restart your R session, and only run these lines

library(mapdeck)
mapdeck()

and tell me if you still get the error?

MasterPasta commented 4 years ago

it works now, thanks

SymbolixAU commented 4 years ago

mapboxgl() is not a function in mapdeck, so it sounds like you have a conflict somewhere with the other libraries you have loaded.