Skip to content

Commit

Permalink
Merge pull request #583 from Robinlovelace/fixgetdata-revert
Browse files Browse the repository at this point in the history
Revert "Fix #576"
  • Loading branch information
Nowosad authored Oct 27, 2020
2 parents 6cb7370 + 4c7bb11 commit 2dbd62c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions 07-read-write-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down

0 comments on commit 2dbd62c

Please sign in to comment.