From 4c7bb11bd77e3db1fc08d81651f673f693a3a422 Mon Sep 17 00:00:00 2001 From: Robin Lovelace Date: Sun, 25 Oct 2020 07:29:52 +0000 Subject: [PATCH] Revert "Fix #576" This reverts commit 651820683ea91a4e149b421d78cdce243ab6fb09. --- 07-read-write-plot.Rmd | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/07-read-write-plot.Rmd b/07-read-write-plot.Rmd index 11a02aa8e..21fe06209 100644 --- a/07-read-write-plot.Rmd +++ b/07-read-write-plot.Rmd @@ -107,14 +107,8 @@ A second example downloads a series of rasters containing global monthly precipi The result is a multilayer object of class `RasterStack`. ```{r 07-read-write-plot-5} -if(!file.exists("prec_10m_bil.zip")) { - u = "https://github.com/Robinlovelace/geocompr/releases/download/1.2/prec_10m_bil.zip" - download.file(u, "prec_10m_bil.zip") - unzip("prec_10m_bil.zip", exdir = "prec") -} library(raster) -worldclim_prec = stack(list.files("prec", pattern = "bil", full.names = TRUE)) -# worldclim_prec = getData(name = "worldclim", var = "prec", res = 10) +worldclim_prec = getData(name = "worldclim", var = "prec", res = 10) class(worldclim_prec) ```