Maptile fetched in RStudio Desktop but not RStudio Server

rstudioserver

#1

I have some custom map tiles which were showing when I ran the app in RStudio Desktop but in RStudio Server I see a greyed-out area. I do see the marker though. How can I fix this please?

Using the code below:

library(tidyverse)
library(leaflet)
mymap <- leaflet() %>% 
  addTiles("http:/level123.co.uk/ds16/{z}/{x}/{y}.png", option = tileOptions(tms = TRUE), leafletOptions(minZoom = 0, maxZoom = 17)) %>% 
  setView(-0.3224, 51.2322,  10) %>% 
  addMarkers(-0.3224, 51.2322)
mymap

#2

Hi! Welcome to RStudio Community!

It looks like your code was not formatted correctly to make it easy to read for people trying to help you. Formatting code allows for people to more easily identify where issues may be occuring, and makes it easier to read, in general. I have edited you post to format the code properly.

In the future please put code that is inline (such as a function name, like mutate or filter) inside of backticks (`mutate`) and chunks of code (including error messages and code copied from the console) can be put between sets of three backticks:

```
example <- foo %>%
  filter(a == 1)
```

This process can be done automatically by highlighting your code, either inline or in a chunk, and clicking the </> button on the toolbar of the reply window!

This will help keep our community tidy and help you get the help you are looking for!

For more information, please take a look at the community's FAQ on formating code