To use this you must have your own "INSTANCE_ID", set this in env var "SENTINELHUB_INSTANCE_ID".
sentinel2_wms(
layer = c("TRUE-COLOR-S2L2A", "NDVI", "FALSE-COLOR", "FALSE-COLOR-URBAN",
"AGRICULTURE", "BATHYMETRIC", "GEOLOGY", "MOISTURE-INDEX", "SWIR", "NATURAL-COLOR"),
datetime = NA
)
see layer options in the argument, default is "TRUE-COLOR-S2L2A"
a valid datetime or NA for "latest"
a string to a WMS
sentinel2_wms()
#> [1] "WMS:https://services.sentinel-hub.com/ogc/wms/?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetTile&LAYERS=TRUE-COLOR-S2L2A&SRS=EPSG:3857&BBOX=-20037508.342789,-20037508.342789,20037508.342789,20037508.342789"