save_png: Save a base64-encoded PNG to file

Description Usage Arguments Examples

View source: R/isochrone_png.R

Description

save_png decodes a base64-encoded PNG of a response object from a isochrone_png call and saves it to file.

Usage

1
save_png(isochrone_png, file = "isochrone.png")

Arguments

isochrone_png

a response object from a isochrone_png call to the walkalytics isochrone API.

file

character vector, containing file name or path

Examples

1
2
isochrone_png(x = 896488, y = 6006502, key = "abcd1234") %>%
    save_png(tempfile(pattern = "file", fileext = ".png"))

walkalytics documentation built on April 23, 2018, 5:04 p.m.