Skip to content

Commit 62b0c04

Browse files
author
Christopher Prener
committed
update setup instructions
1 parent 9254dcc commit 62b0c04

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

setup.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The installation of the geospatial libraries GDAL, GEOS, and PROJ.4 varies signi
7272
>$ brew install gdal2 --with-armadillo --with-complete --with-libkml --with-unsupported
7373
>$ brew link --force gdal2
7474
>~~~
75-
>{: .bash}
75+
>{: .language-bash}
7676
>
7777
{: .solution}
7878
@@ -87,21 +87,21 @@ The installation of the geospatial libraries GDAL, GEOS, and PROJ.4 varies signi
8787
>$ sudo apt-get update
8888
>$ sudo apt-get install libgdal-dev libgeos-dev libproj-dev
8989
>~~~
90-
>{: .bash}
90+
>{: .language-bash}
9191
>
9292
> For **Fedora**:
9393
>
9494
>~~~
9595
>$ sudo dnf install gdal-devel proj-devel proj-epsg proj-nad geos-devel
9696
>~~~
97-
>{: .bash}
97+
>{: .language-bash}
9898
>
9999
> For **Arch**:
100100
>
101101
>~~~
102102
>$ pacman -S gdal proj geos
103103
>~~~
104-
>{: .bash}
104+
>{: .language-bash}
105105
>
106106
> For **Debian**: The [rocker geospatial](https://github.com/rocker-org/geospatial) Dockerfiles may be helpful. Ubuntu Dockerfiles are found [here](https://github.com/r-spatial/sf/tree/master/inst/docker).
107107
>
@@ -120,52 +120,52 @@ Linux users will have to install UDUNITS separately. Like the geospatial librari
120120
>~~~
121121
>$ sudo apt-get install libudunits2-dev
122122
>~~~
123-
>{: .bash}
123+
>{: .language-bash}
124124
>
125125
> For **Fedora**:
126126
>
127127
>~~~
128128
>$ sudo dnf install udunits2-devel
129129
>~~~
130-
>{: .bash}
130+
>{: .language-bash}
131131
>
132132
> For **Arch**:
133133
>
134134
>~~~
135135
>$ pacaur/yaourt/whatever -S udunits
136136
>~~~
137-
>{: .bash}
137+
>{: .language-bash}
138138
>
139139
> For **Debian**:
140140
>
141141
>~~~
142142
>$ sudo apt-get install -y libudunits2-dev
143143
>~~~
144-
>{: .bash}
144+
>{: .language-bash}
145145
>
146146
{: .solution}
147147
148148
### R Packages
149149
150150
The following `R` packages are used in the various geospatial lessons.
151151
152-
* [`devtools`](https://cran.r-project.org/package=devtools)
153152
* [`dplyr`](https://cran.r-project.org/package=dplyr)
154153
* [`raster`](https://cran.r-project.org/package=raster)
155154
* [`rgdal`](https://cran.r-project.org/package=rgdal)
156155
* [`rasterVis`](https://cran.r-project.org/package=rasterVis)
156+
* [`remotes`](https://cran.r-project.org/package=remotes)
157157
* [`sf`](https://cran.r-project.org/package=sf)
158158
159159
To install them from the `R` prompt, type:
160160
161161
```r
162-
install.packages(c("devtools", "dplyr", "raster", "rgdal", "rasterVis", "sf"))
162+
install.packages(c("dplyr", "raster", "rgdal", "rasterVis", "remotes", "sf"))
163163
```
164164
165165
Additionally, you will need to install the *development* version of [`ggplot2`](https://github.com/tidyverse/ggplot2):
166166
167167
```r
168-
devtools::install_github("tidyverse/ggplot2")
168+
remotes::install_github("tidyverse/ggplot2")
169169
```
170170
171171
## Option B: Docker
@@ -200,7 +200,7 @@ Once up and running - you'll have full access to RStudio right from your browser
200200
>~~~
201201
>$ docker pull rocker/geospatial
202202
>~~~
203-
>{: .bash}
203+
>{: .language-bash}
204204
>
205205
> Once the pull command is executed, the image needs to be run to become accessible as a container. In the following example, the image is named `rocker/geospatial` and the container is named `gis`. The [image](https://docs.docker.com/glossary/?term=image) contains the software you've downloaded, and the [container](https://docs.docker.com/glossary/?term=container) is the run-time instance of that image. New Docker users should need only one named container per image.
206206
>
@@ -209,7 +209,7 @@ Once up and running - you'll have full access to RStudio right from your browser
209209
>~~~
210210
>$ docker run -d -P --name gis /Users/jane/GitHub:/home/rstudio/GitHub rocker/geospatial
211211
>~~~
212-
>{: .bash}
212+
>{: .language-bash}
213213
>
214214
> When she opens her RStudio instance below, she will see a `GitHub` folder in her file tab in the lower righthand corner of the screen. Windows and Linux users will have to adapt the file path above to follow the standards of their operating systems. More details are available on [rocker's Wiki](https://github.com/rocker-org/rocker/wiki/Sharing-files-with-host-machine).
215215
>
@@ -218,7 +218,7 @@ Once up and running - you'll have full access to RStudio right from your browser
218218
>~~~
219219
>$ docker port gis
220220
>~~~
221-
>{: .bash}
221+
>{: .language-bash}
222222
>
223223
> An output, for example, of `8787/tcp -> 0.0.0.0:32768` would indicate that you should point your browser to `http://localhost:32768/`. If prompted, enter `rstudio` for both the username and the password.
224224
>
@@ -228,22 +228,22 @@ Once up and running - you'll have full access to RStudio right from your browser
228228
>~~~
229229
>$ docker stop gis
230230
>~~~
231-
>{: .bash}
231+
>{: .language-bash}
232232
>
233233
> #### Re-starting a Container
234234
> Once a container has been named and created, you cannot create a container with the same name again using `docker run`. Instead, you can restart it:
235235
>
236236
>~~~
237237
>$ docker start gis
238238
>~~~
239-
>{: .bash}
239+
>{: .language-bash}
240240
>
241241
> If you cannot remember the name of the container you created, you can use the following command to print a list of all named containers:
242242
>
243243
>~~~
244244
>$ docker ps -a
245245
>~~~
246-
>{: .bash}
246+
>{: .language-bash}
247247
>
248248
> If you are returning to a session after stopping Docker itself, make sure Docker is running again before re-starting your container!
249249
>
@@ -283,27 +283,27 @@ Once up and running - you'll have full access to RStudio right from your browser
283283
>~~~
284284
>$ docker ps -a
285285
>~~~
286-
>{: .bash}
286+
>{: .language-bash}
287287
>
288288
> To list all of the currently downloaded Docker images:
289289
>
290290
>~~~
291291
>$ docker images -a
292292
>~~~
293-
>{: .bash}
293+
>{: .language-bash}
294294
>
295295
> These images can take up system resources, and if you'd like to remove them, you can use the `docker prune` command. To remove any Docker resources not affiliated with a container listed under `docker ps -a`:
296296
>
297297
>~~~
298298
>$ docker system prune
299299
>~~~
300-
>{: .bash}
300+
>{: .language-bash}
301301
>
302302
> To remove **all** Docker resources, including currently named containers:
303303
>
304304
>~~~
305305
>$ docker system prune -a
306306
>~~~
307-
>{: .bash}
307+
>{: .language-bash}
308308
>
309309
{: .solution}

0 commit comments

Comments
 (0)