Learn R Programming

walkalytics (version 0.1.0)

save_png: Save a base64-encoded PNG to file

Description

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

Usage

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

Run this code
# NOT RUN {
isochrone_png(x = 896488, y = 6006502, key = "abcd1234") %>%
    save_png(tempfile(pattern = "file", fileext = ".png"))
# }

Run the code above in your browser using DataLab