Learn R Programming

bfsMaps (version 1.99.3)

DownloadBfSMaps: Helps to Get the Map Data

Description

Helperfunction to download the mapdata and unzip them into a user defined location.

Usage

DownloadBfSMaps(url = "https://dam-api.bfs.admin.ch/hub/api/dam/assets/21245514/master",
                path = paste0(path.expand("~"), "/MapData"))

Value

the option entry is returned invisibly

Arguments

url

the url for the data (might outdate and must then be redefined).

path

the path where the data are to be installed.

Author

Andri Signorell <andri@signorell.net>

Details

It is convenient to not be forced to download the data by oneself. This function can be helpful.

Examples

Run this code
if (FALSE) {

DownloadBfSMaps()
# enter the returned option
options(bfsMaps.base="*** your map folder ***")

library(bfsMaps)
PlotKant("ZH", "blue")
}

Run the code above in your browser using DataLab