Re: [R] passing API key in leaflet

2017-03-30 Thread Thierry Onkelinx
Hi David, The key was stored correctly in the environment. I solved the problem by using addTiles() instead of addProviderTiles() leaflet() %>% addTiles( paste0( "https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=";, Sys.getenv("OCM_API") ) ) Best regards,

Re: [R] passing API key in leaflet

2017-03-26 Thread David Winsemius
> On Mar 25, 2017, at 3:44 AM, Thierry Onkelinx > wrote: > > Dear all, > > I'd like to use the OpenCycleMap as background image in a leaflet map. > This requires an API key. I've stored the key in an environment > variable. Below is a minimal example of the leaflet map. I still get > the "API