## ----getData------------------------------------------------------------------ dir.create("data", showWarnings = FALSE) if (!file.exists("data/rs/samples.rds")) { download.file("https://biogeo.ucdavis.edu/data/rspatial/rs.zip", dest = "data/rs.zip") unzip("data/rs.zip", exdir="data") }