Skip to content

Commit f175377

Browse files
authored
Merge pull request #433 from AndyBunn/main
Fixing bad links in episodes/setup.R
2 parents 6ca98fa + b5be0c7 commit f175377

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ __pycache__
5858
vendor/
5959
.docker-vendor/
6060
Gemfile.lock
61-
.*history
61+
.*history

episodes/setup.R

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,43 @@ options(timeout = max(300, getOption('timeout')))
22
## file structure
33

44
if (! file.exists("data/NEON-DS-Site-Layout-Files")) {
5-
dest <- tempfile()
6-
download.file("https://ndownloader.figshare.com/files/3708751", dest,
7-
mode = "wb")
8-
unzip(dest, exdir = "data")
5+
dest <- tempfile()
6+
download.file("https://ndownloader.figshare.com/files/3708751", dest,
7+
mode = "wb")
8+
unzip(dest, exdir = "data")
99
}
1010

1111
if (! file.exists("data/NEON-DS-Airborne-Remote-Sensing")) {
12-
dest <- tempfile()
13-
download.file("https://ndownloader.figshare.com/files/3701578", dest,
14-
mode = "wb")
15-
unzip(dest, exdir = "data")
12+
dest <- tempfile()
13+
download.file("https://ndownloader.figshare.com/files/3701578", dest,
14+
mode = "wb")
15+
unzip(dest, exdir = "data")
1616
}
1717

1818
if (! file.exists("data/NEON-DS-Met-Time-Series")) {
19-
dest <- tempfile()
20-
download.file("https://ndownloader.figshare.com/files/3701572", dest,
21-
mode = "wb")
22-
unzip(dest, exdir = "data")
19+
dest <- tempfile()
20+
download.file("https://ndownloader.figshare.com/files/3701572", dest,
21+
mode = "wb")
22+
unzip(dest, exdir = "data")
2323
}
2424

2525
if (! file.exists("data/NEON-DS-Landsat-NDVI")) {
26-
dest <- tempfile()
27-
download.file("https://ndownloader.figshare.com/files/4933582", dest,
28-
mode = "wb")
29-
unzip(dest, exdir = "data")
26+
dest <- tempfile()
27+
download.file("https://ndownloader.figshare.com/files/4933582", dest,
28+
mode = "wb")
29+
unzip(dest, exdir = "data")
3030
}
3131

3232
if (! file.exists("data/Global/Boundaries/ne_110m_graticules_all")) {
33-
dest <- tempfile()
34-
download.file("https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_graticules_all.zip",
35-
dest, mode = "wb")
36-
unzip(dest, exdir = "data/Global/Boundaries/ne_110m_graticules_all")
33+
dest <- tempfile()
34+
download.file("https://naciscdn.org/naturalearth/110m/physical/ne_110m_graticules_all.zip",
35+
dest, mode = "wb")
36+
unzip(dest, exdir = "data/Global/Boundaries/ne_110m_graticules_all")
3737
}
3838

3939
if (! file.exists("data/Global/Boundaries/ne_110m_land")) {
40-
dest <- tempfile()
41-
download.file("https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_land.zip",
42-
dest, mode = "wb")
43-
unzip(dest, exdir = "data/Global/Boundaries/ne_110m_land")
40+
dest <- tempfile()
41+
download.file("https://naciscdn.org/naturalearth/110m/physical/ne_110m_land.zip",
42+
dest, mode = "wb")
43+
unzip(dest, exdir = "data/Global/Boundaries/ne_110m_land")
4444
}

0 commit comments

Comments
 (0)