I am using the code below
library(httr)
img<-GET("https://api.weather.com/v3/TileServer/tile/radarFcst?
ts=1428948600&fts=1428949000&xyz=0:0:1&apiKey=yourApiKey")
How can I display this output I am getting from the API in R? I get output below
class(img)
[1] "response"
> img
Response [https://api.weather.com/v3/TileServer/tile/radarFcst?
ts=1428948600&fts=1428949000&xyz=0:0:1&apiKey=yourkey]
Date: 2018-07-19 23:16
Status: 400
Content-Type: image/png
Size: 139 B
<BINARY BODY>