You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 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).
107
107
>
@@ -120,52 +120,52 @@ Linux users will have to install UDUNITS separately. Like the geospatial librari
120
120
>~~~
121
121
>$ sudo apt-get install libudunits2-dev
122
122
>~~~
123
-
>{: .bash}
123
+
>{: .language-bash}
124
124
>
125
125
> For **Fedora**:
126
126
>
127
127
>~~~
128
128
>$ sudo dnf install udunits2-devel
129
129
>~~~
130
-
>{: .bash}
130
+
>{: .language-bash}
131
131
>
132
132
> For **Arch**:
133
133
>
134
134
>~~~
135
135
>$ pacaur/yaourt/whatever -S udunits
136
136
>~~~
137
-
>{: .bash}
137
+
>{: .language-bash}
138
138
>
139
139
> For **Debian**:
140
140
>
141
141
>~~~
142
142
>$ sudo apt-get install -y libudunits2-dev
143
143
>~~~
144
-
>{: .bash}
144
+
>{: .language-bash}
145
145
>
146
146
{: .solution}
147
147
148
148
### R Packages
149
149
150
150
The following `R` packages are used in the various geospatial lessons.
Additionally, you will need to install the *development* version of [`ggplot2`](https://github.com/tidyverse/ggplot2):
166
166
167
167
```r
168
-
devtools::install_github("tidyverse/ggplot2")
168
+
remotes::install_github("tidyverse/ggplot2")
169
169
```
170
170
171
171
## Option B: Docker
@@ -200,7 +200,7 @@ Once up and running - you'll have full access to RStudio right from your browser
200
200
>~~~
201
201
>$ docker pull rocker/geospatial
202
202
>~~~
203
-
>{: .bash}
203
+
>{: .language-bash}
204
204
>
205
205
> 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.
206
206
>
@@ -209,7 +209,7 @@ Once up and running - you'll have full access to RStudio right from your browser
209
209
>~~~
210
210
>$ docker run -d -P --name gis /Users/jane/GitHub:/home/rstudio/GitHub rocker/geospatial
211
211
>~~~
212
-
>{: .bash}
212
+
>{: .language-bash}
213
213
>
214
214
> 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).
215
215
>
@@ -218,7 +218,7 @@ Once up and running - you'll have full access to RStudio right from your browser
218
218
>~~~
219
219
>$ docker port gis
220
220
>~~~
221
-
>{: .bash}
221
+
>{: .language-bash}
222
222
>
223
223
> 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.
224
224
>
@@ -228,22 +228,22 @@ Once up and running - you'll have full access to RStudio right from your browser
228
228
>~~~
229
229
>$ docker stop gis
230
230
>~~~
231
-
>{: .bash}
231
+
>{: .language-bash}
232
232
>
233
233
> #### Re-starting a Container
234
234
> 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:
235
235
>
236
236
>~~~
237
237
>$ docker start gis
238
238
>~~~
239
-
>{: .bash}
239
+
>{: .language-bash}
240
240
>
241
241
> 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:
242
242
>
243
243
>~~~
244
244
>$ docker ps -a
245
245
>~~~
246
-
>{: .bash}
246
+
>{: .language-bash}
247
247
>
248
248
> If you are returning to a session after stopping Docker itself, make sure Docker is running again before re-starting your container!
249
249
>
@@ -283,27 +283,27 @@ Once up and running - you'll have full access to RStudio right from your browser
283
283
>~~~
284
284
>$ docker ps -a
285
285
>~~~
286
-
>{: .bash}
286
+
>{: .language-bash}
287
287
>
288
288
> To list all of the currently downloaded Docker images:
289
289
>
290
290
>~~~
291
291
>$ docker images -a
292
292
>~~~
293
-
>{: .bash}
293
+
>{: .language-bash}
294
294
>
295
295
> 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`:
296
296
>
297
297
>~~~
298
298
>$ docker system prune
299
299
>~~~
300
-
>{: .bash}
300
+
>{: .language-bash}
301
301
>
302
302
> To remove **all** Docker resources, including currently named containers:
0 commit comments