Skip to content

Commit

Permalink
readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Nowosad committed May 26, 2018
1 parent 5d2f34e commit ebc61a9
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 129 deletions.
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ git clone https://github.com/Robinlovelace/geocompr.git # download the repo
# https://github.com/Robinlovelace/geocompr/archive/master.zip
cd .\geocompr\ # navigate into the repo
# for linux and mac:
docker run -d -p 8787:8787 -v $(pwd):/data robinlovelace/geocompr
docker run -d -p 8787:8787 -v $(pwd):/home/rstudio/data robinlovelace/geocompr
# for windows:
docker run -d -p 8787:8787 -v ${pwd}:/data robinlovelace/geocompr
docker run -d -p 8787:8787 -v ${pwd}:/home/rstudio/data robinlovelace/geocompr
```

If it worked you should be able to open-up RStudio server by opening a browser and navigating to <http://localhost:8787/> resulting in an up-to-date version of R and RStudio running in a container (if it didn't you may have an issue with permissions - see [here](https://stackoverflow.com/questions/34031397/running-docker-on-ubuntu-mounted-host-volume-is-not-writable-from-container)):
Expand All @@ -74,11 +74,7 @@ If it worked you should be able to open-up RStudio server by opening a browser a

geocompr in docker: if you see something like this after following the steps above, congratulations: it worked!

From this point to *build* the book you need to navigate to the volume location on docker machine, by opening the project at `/data` from the project box in the top-right hand corner, illustrated in the figure below. From here open the file `index.Rmd` and hit the little `knit` button above the the RStudio script panel (above the `book` text on line 81 illustrated in the image above).

![](https://user-images.githubusercontent.com/1825120/39538462-d4db2928-4e34-11e8-8612-add5188ed642.png)

Opening the project: navigate to the volume folder in docker (or in another location on your computer)
From this point to *build* the book you can open projects in the `data` directory from the project box in the top-right hand corner, and knit `index.Rmd` with the little `knit` button above the the RStudio script panel (`Ctl+Shift+B` should do the same job).

Reproducing this README
-----------------------
Expand Down Expand Up @@ -158,12 +154,12 @@ knitr::kable(pkg_df)

| Name | Title | version |
|:------------------|:------------------------------------------------------------------------------------------|:-----------|
| bookdown | Authoring Books and Technical Documents with R Markdown \[@R-bookdown\] | 0.7.10 |
| bookdown | Authoring Books and Technical Documents with R Markdown \[@R-bookdown\] | 0.7 |
| cartogram | Create Cartograms with R \[@R-cartogram\] | 0.0.3 |
| decido | Bindings for 'Mapbox' Ear Cutting Triangulation Library \[@R-decido\] | 0.1.0 |
| dismo | Species Distribution Modeling \[@R-dismo\] | 1.1.4 |
| geosphere | Spherical Trigonometry \[@R-geosphere\] | 1.5.7 |
| ggmap | Spatial Visualization with ggplot2 \[@R-ggmap\] | 2.6.1 |
| ggmap | Spatial Visualization with ggplot2 \[@R-ggmap\] | 2.7.900 |
| ggplot2 | Create Elegant Data Visualisations Using the Grammar of Graphics \[@R-ggplot2\] | 2.2.1.9000 |
| gstat | Spatial and Spatio-Temporal Geostatistical Modelling, Prediction \[@R-gstat\] | 1.1.6 |
| historydata | Data Sets for Historians \[@R-historydata\] | 0.2.9001 |
Expand All @@ -175,8 +171,8 @@ knitr::kable(pkg_df)
| lwgeom | Bindings to Selected 'liblwgeom' Functions for Simple Features \[@R-lwgeom\] | 0.1.5 |
| mapview | Interactive Viewing of Spatial Data in R \[@R-mapview\] | 2.4.0 |
| microbenchmark | Accurate Timing Functions \[@R-microbenchmark\] | 1.4.4 |
| mlr | Machine Learning in R \[@R-mlr\] | 2.12.1 |
| osmdata | Import 'OpenStreetMap' Data as Simple Features or Spatial \[@R-osmdata\] | 0.0.6.1 |
| mlr | Machine Learning in R \[@R-mlr\] | 2.13 |
| osmdata | Import 'OpenStreetMap' Data as Simple Features or Spatial \[@R-osmdata\] | 0.0.7.1 |
| pROC | Display and Analyze ROC Curves \[@R-pROC\] | 1.12.1 |
| raster | Geographic Data Analysis and Modeling \[@R-raster\] | 2.6.7 |
| rcartocolor | 'CARTOColors' Palettes \[@R-rcartocolor\] | 0.0.22 |
Expand All @@ -186,14 +182,14 @@ knitr::kable(pkg_df)
| rmarkdown | Dynamic Documents for R \[@R-rmarkdown\] | 1.9 |
| rnaturalearth | World Map Data from Natural Earth \[@R-rnaturalearth\] | 0.1.0 |
| rnaturalearthdata | World Vector Map Data from Natural Earth Used in 'rnaturalearth' \[@R-rnaturalearthdata\] | 0.1.0 |
| RQGIS | Integrating R with QGIS \[@R-RQGIS\] | 1.0.3.9000 |
| RQGIS | Integrating R with QGIS \[@R-RQGIS\] | 1.0.3 |
| RSAGA | SAGA Geoprocessing and Terrain Analysis \[@R-RSAGA\] | 1.1.0 |
| sf | Simple Features for R \[@R-sf\] | 0.6.4 |
| sp | Classes and Methods for Spatial Data \[@R-sp\] | 1.2.7 |
| spData | Datasets for Spatial Analysis \[@R-spData\] | 0.2.8.8 |
| spDataLarge | Large datasets for spatial analysis \[@R-spDataLarge\] | 0.2.6.3 |
| spDataLarge | Large datasets for spatial analysis \[@R-spDataLarge\] | 0.2.6.4 |
| stplanr | Sustainable Transport Planning \[@R-stplanr\] | 0.2.4 |
| tabularaster | Tidy Tools for 'Raster' Data \[@R-tabularaster\] | 0.4.0 |
| tidyverse | Easily Install and Load the 'Tidyverse' \[@R-tidyverse\] | 1.2.1 |
| tidyverse | Easily Install and Load the 'Tidyverse' \[@R-tidyverse\] | 1.2.1.9000 |
| tmap | Thematic Maps \[@R-tmap\] | 2.0 |
| tmaptools | Thematic Map Tools \[@R-tmaptools\] | 2.0 |
16 changes: 8 additions & 8 deletions extdata/generic_map_pkgs.csv
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package,published,title,depends_count,suggests_count,tidyverse_happy,has_vignette_build,has_tests,reverse_count,dl_last_month,ci,test_coverage,forks,stars,watchers,last_commit,last_issue_closed,contributors
cartography,2018-04-30,Thematic Cartography,1,4,FALSE,TRUE,FALSE,0,1986,Travis,NONE,15,95,10,NA,1.4666666666666666,10
ggplot2,2016-12-30,Create Elegant Data Visualisations Using the Grammar of Graphics,1,15,TRUE,TRUE,TRUE,1242,533648,"Travis, Appveyor",CodeCov,1185,3092,314,NA,0,150
googleway,2018-04-29,Accesses Google Maps APIs to Retrieve Data and Plot Maps,1,3,TRUE,TRUE,TRUE,1,2533,Travis,CodeCov,16,87,8,NA,0.06666666666666667,5
cartography,2018-04-30,Thematic Cartography,1,4,FALSE,TRUE,FALSE,0,2130,Travis,NONE,15,96,10,NA,1.9666666666666666,5
ggplot2,2016-12-30,Create Elegant Data Visualisations Using the Grammar of Graphics,1,15,TRUE,TRUE,TRUE,1258,503791,"Travis, Appveyor",CodeCov,1195,3132,313,NA,0,152
googleway,2018-05-25,Accesses Google Maps APIs to Retrieve Data and Plot Maps,1,3,TRUE,TRUE,TRUE,1,2536,Travis,CodeCov,16,90,9,NA,0,6
leaflet,2018-04-20,"Create Interactive Web Maps with the JavaScript 'Leaflet'
Library",1,10,TRUE,FALSE,TRUE,34,35995,Travis,NONE,297,462,93,NA,0,18
mapview,2018-04-28,Interactive Viewing of Spatial Data in R,2,6,FALSE,FALSE,TRUE,4,13611,Travis,CodeCov,30,160,34,NA,0.1,9
plotly,2017-07-29,Create Interactive Web Graphics via 'plotly.js',2,18,TRUE,FALSE,TRUE,64,65366,Travis,NONE,452,1223,115,NA,0.03333333333333333,24
rasterVis,2018-04-05,Visualization Methods for Raster Data,4,4,FALSE,FALSE,FALSE,10,8288,Travis,NONE,12,35,6,NA,0.03333333333333333,13
tmap,2018-04-10,Thematic Maps,2,7,FALSE,TRUE,FALSE,1,11216,"Travis, Appveyor",NONE,40,215,19,NA,0.03333333333333333,0
Library",1,10,TRUE,FALSE,TRUE,36,34489,Travis,NONE,301,469,94,NA,0,18
mapview,2018-04-28,Interactive Viewing of Spatial Data in R,2,6,FALSE,FALSE,TRUE,4,13709,Travis,CodeCov,30,161,34,NA,0.26666666666666666,1
plotly,2017-07-29,Create Interactive Web Graphics via 'plotly.js',2,18,TRUE,FALSE,TRUE,67,62724,Travis,NONE,456,1231,114,NA,0.03333333333333333,11
rasterVis,2018-04-05,Visualization Methods for Raster Data,4,4,FALSE,FALSE,FALSE,10,7168,Travis,NONE,12,36,6,NA,0.5333333333333333,13
tmap,2018-04-10,Thematic Maps,2,7,FALSE,TRUE,FALSE,1,10018,"Travis, Appveyor",CodeCov,41,220,18,NA,0.06666666666666667,0
14 changes: 7 additions & 7 deletions extdata/package_list.csv
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"Name","Title","version"
"bookdown","Authoring Books and Technical Documents with R Markdown [@R-bookdown]","0.7.10"
"bookdown","Authoring Books and Technical Documents with R Markdown [@R-bookdown]","0.7"
"cartogram","Create Cartograms with R [@R-cartogram]","0.0.3"
"decido","Bindings for 'Mapbox' Ear Cutting Triangulation Library [@R-decido]","0.1.0"
"dismo","Species Distribution Modeling [@R-dismo]","1.1.4"
"geosphere","Spherical Trigonometry [@R-geosphere]","1.5.7"
"ggmap","Spatial Visualization with ggplot2 [@R-ggmap]","2.6.1"
"ggmap","Spatial Visualization with ggplot2 [@R-ggmap]","2.7.900"
"ggplot2","Create Elegant Data Visualisations Using the Grammar of Graphics [@R-ggplot2]","2.2.1.9000"
"gstat","Spatial and Spatio-Temporal Geostatistical Modelling, Prediction [@R-gstat]","1.1.6"
"historydata","Data Sets for Historians [@R-historydata]","0.2.9001"
Expand All @@ -16,8 +16,8 @@
"lwgeom","Bindings to Selected 'liblwgeom' Functions for Simple Features [@R-lwgeom]","0.1.5"
"mapview","Interactive Viewing of Spatial Data in R [@R-mapview]","2.4.0"
"microbenchmark","Accurate Timing Functions [@R-microbenchmark]","1.4.4"
"mlr","Machine Learning in R [@R-mlr]","2.12.1"
"osmdata","Import 'OpenStreetMap' Data as Simple Features or Spatial [@R-osmdata]","0.0.6.1"
"mlr","Machine Learning in R [@R-mlr]","2.13"
"osmdata","Import 'OpenStreetMap' Data as Simple Features or Spatial [@R-osmdata]","0.0.7.1"
"pROC","Display and Analyze ROC Curves [@R-pROC]","1.12.1"
"raster","Geographic Data Analysis and Modeling [@R-raster]","2.6.7"
"rcartocolor","'CARTOColors' Palettes [@R-rcartocolor]","0.0.22"
Expand All @@ -27,14 +27,14 @@
"rmarkdown","Dynamic Documents for R [@R-rmarkdown]","1.9"
"rnaturalearth","World Map Data from Natural Earth [@R-rnaturalearth]","0.1.0"
"rnaturalearthdata","World Vector Map Data from Natural Earth Used in 'rnaturalearth' [@R-rnaturalearthdata]","0.1.0"
"RQGIS","Integrating R with QGIS [@R-RQGIS]","1.0.3.9000"
"RQGIS","Integrating R with QGIS [@R-RQGIS]","1.0.3"
"RSAGA","SAGA Geoprocessing and Terrain Analysis [@R-RSAGA]","1.1.0"
"sf","Simple Features for R [@R-sf]","0.6.4"
"sp","Classes and Methods for Spatial Data [@R-sp]","1.2.7"
"spData","Datasets for Spatial Analysis [@R-spData]","0.2.8.8"
"spDataLarge","Large datasets for spatial analysis [@R-spDataLarge]","0.2.6.3"
"spDataLarge","Large datasets for spatial analysis [@R-spDataLarge]","0.2.6.4"
"stplanr","Sustainable Transport Planning [@R-stplanr]","0.2.4"
"tabularaster","Tidy Tools for 'Raster' Data [@R-tabularaster]","0.4.0"
"tidyverse","Easily Install and Load the 'Tidyverse' [@R-tidyverse]","1.2.1"
"tidyverse","Easily Install and Load the 'Tidyverse' [@R-tidyverse]","1.2.1.9000"
"tmap","Thematic Maps [@R-tmap]","2.0"
"tmaptools","Thematic Map Tools [@R-tmaptools]","2.0"
8 changes: 4 additions & 4 deletions extdata/specific_map_pkgs.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package,published,title,depends_count,suggests_count,tidyverse_happy,has_vignette_build,has_tests,reverse_count,dl_last_month,ci,test_coverage,forks,stars,watchers,last_commit,last_issue_closed,contributors
cartogram,2016-09-28,Create Cartograms with R,NA,2,FALSE,FALSE,FALSE,0,2297,Travis,NONE,5,42,5,NA,2.7666666666666666,1
geogrid,2018-02-20,Turn Geospatial Polygons into Regular or Hexagonal Grids,NA,2,FALSE,FALSE,TRUE,1,596,Travis,CodeCov,16,246,17,NA,0.3,0
geofacet,2018-03-29,'ggplot2' Faceting Utilities for Geographical Data,1,6,TRUE,TRUE,TRUE,0,619,Not on GitHub,Not on GitHub,NA,NA,NA,NA,NA,NA
linemap,2017-09-15,Line Maps,1,NA,FALSE,FALSE,FALSE,0,172,Not on GitHub,Not on GitHub,NA,NA,NA,NA,NA,NA
cartogram,2018-05-22,Create Cartograms with R,NA,2,FALSE,FALSE,FALSE,0,2939,Travis,NONE,5,42,5,NA,3.2666666666666666,1
geogrid,2018-02-20,Turn Geospatial Polygons into Regular or Hexagonal Grids,NA,2,FALSE,FALSE,TRUE,1,487,Travis,CodeCov,17,246,18,NA,0.8,0
geofacet,2018-03-29,'ggplot2' Faceting Utilities for Geographical Data,1,6,TRUE,TRUE,TRUE,0,528,Not on GitHub,Not on GitHub,NA,NA,NA,NA,NA,NA
linemap,2017-09-15,Line Maps,1,NA,FALSE,FALSE,FALSE,0,165,Not on GitHub,Not on GitHub,NA,NA,NA,NA,NA,NA
146 changes: 74 additions & 72 deletions extdata/top_dls.csv
Original file line number Diff line number Diff line change
@@ -1,73 +1,75 @@
package,Downloads,date
plotly,2145,2018-05-17
raster,2008,2018-05-17
spData,1776,2018-05-17
leaflet,1217,2018-05-17
spdep,1104,2018-05-17
mapview,456,2018-05-17
geojsonio,405,2018-05-17
rmapshaper,277,2018-05-17
tigris,166,2018-05-17
lwgeom,110,2018-05-17
rnaturalearth,87,2018-05-17
cartography,68,2018-05-17
googlePolylines,66,2018-05-17
osmdata,56,2018-05-17
tidycensus,51,2018-05-17
velox,44,2018-05-17
mapedit,41,2018-05-17
spatialEco,38,2018-05-17
fasterize,26,2018-05-17
RQGIS,25,2018-05-17
btb,24,2018-05-17
stplanr,23,2018-05-17
MODIS,22,2018-05-17
spbabel,21,2018-05-17
USAboundaries,20,2018-05-17
rmapzen,19,2018-05-17
geogrid,18,2018-05-17
jpndistrict,18,2018-05-17
FedData,17,2018-05-17
mapsapi,15,2018-05-17
ipumsr,14,2018-05-17
concaveman,13,2018-05-17
link2GI,13,2018-05-17
SpaDES.tools,13,2018-05-17
echor,11,2018-05-17
GSODR,11,2018-05-17
rcartocolor,11,2018-05-17
tabularaster,11,2018-05-17
crawl,10,2018-05-17
jpmesh,10,2018-05-17
tilegramsR,10,2018-05-17
adklakedata,9,2018-05-17
cdcfluview,9,2018-05-17
nngeo,9,2018-05-17
bcmaps,8,2018-05-17
mudata2,8,2018-05-17
NLMR,8,2018-05-17
brazilmaps,7,2018-05-17
hydrolinks,7,2018-05-17
NipponMap,7,2018-05-17
openSTARS,7,2018-05-17
RCzechia,7,2018-05-17
swmmr,7,2018-05-17
cancensus,6,2018-05-17
cyclestreets,6,2018-05-17
kokudosuuchi,6,2018-05-17
rgeopat2,6,2018-05-17
sfdct,6,2018-05-17
statesRcontiguous,6,2018-05-17
eixport,5,2018-05-17
GWSDAT,5,2018-05-17
LAGOSNE,5,2018-05-17
linemap,5,2018-05-17
parlitools,5,2018-05-17
rpostgisLT,5,2018-05-17
sabre,5,2018-05-17
smoothr,5,2018-05-17
vein,5,2018-05-17
landsepi,4,2018-05-17
lutz,4,2018-05-17
uavRmp,4,2018-05-17
wunderscraper,4,2018-05-17
plotly,2091,2018-05-24
raster,1950,2018-05-24
spData,1639,2018-05-24
leaflet,1150,2018-05-24
spdep,1034,2018-05-24
mapview,457,2018-05-24
geojsonio,386,2018-05-24
rmapshaper,264,2018-05-24
tigris,139,2018-05-24
lwgeom,108,2018-05-24
FedData,105,2018-05-24
cartogram,98,2018-05-24
eurostat,92,2018-05-24
rnaturalearth,87,2018-05-24
cartography,71,2018-05-24
googlePolylines,67,2018-05-24
btb,66,2018-05-24
osmdata,59,2018-05-24
tidycensus,44,2018-05-24
mapedit,40,2018-05-24
spatialEco,38,2018-05-24
velox,34,2018-05-24
fasterize,26,2018-05-24
RQGIS,25,2018-05-24
stplanr,24,2018-05-24
MODIS,22,2018-05-24
spbabel,20,2018-05-24
jpndistrict,19,2018-05-24
rmapzen,19,2018-05-24
USAboundaries,19,2018-05-24
geogrid,16,2018-05-24
mapsapi,15,2018-05-24
ipumsr,14,2018-05-24
link2GI,13,2018-05-24
SpaDES.tools,13,2018-05-24
tabularaster,13,2018-05-24
concaveman,12,2018-05-24
crawl,11,2018-05-24
rcartocolor,11,2018-05-24
GSODR,10,2018-05-24
nngeo,10,2018-05-24
adklakedata,9,2018-05-24
cdcfluview,9,2018-05-24
jpmesh,9,2018-05-24
tilegramsR,9,2018-05-24
bcmaps,8,2018-05-24
cyclestreets,8,2018-05-24
mudata2,8,2018-05-24
NipponMap,8,2018-05-24
NLMR,8,2018-05-24
brazilmaps,7,2018-05-24
hydrolinks,7,2018-05-24
kokudosuuchi,7,2018-05-24
openSTARS,7,2018-05-24
RCzechia,7,2018-05-24
cancensus,6,2018-05-24
echor,6,2018-05-24
linemap,6,2018-05-24
rgeopat2,6,2018-05-24
sfdct,6,2018-05-24
statesRcontiguous,6,2018-05-24
swmmr,6,2018-05-24
eixport,5,2018-05-24
GWSDAT,5,2018-05-24
LAGOSNE,5,2018-05-24
landsepi,5,2018-05-24
lutz,5,2018-05-24
parlitools,5,2018-05-24
rpostgisLT,5,2018-05-24
sabre,5,2018-05-24
smoothr,5,2018-05-24
vein,5,2018-05-24
uavRmp,4,2018-05-24
wunderscraper,4,2018-05-24
18 changes: 18 additions & 0 deletions extdata/word-count-time.csv
Original file line number Diff line number Diff line change
Expand Up @@ -577,3 +577,21 @@ n_words,chapter,date,n_pages
2002,18,2018-05-19,NA
1326,19,2018-05-19,NA
1,20,2018-05-19,NA
5501,1,2018-05-25,NA
9604,2,2018-05-25,NA
6022,3,2018-05-25,NA
7539,4,2018-05-25,NA
9746,5,2018-05-25,NA
5416,6,2018-05-25,NA
4136,7,2018-05-25,NA
9858,8,2018-05-25,NA
4975,9,2018-05-25,NA
1927,10,2018-05-25,NA
6636,11,2018-05-25,NA
7408,12,2018-05-25,NA
4496,13,2018-05-25,NA
1012,14,2018-05-25,NA
4,15,2018-05-25,NA
2014,16,2018-05-25,NA
1280,17,2018-05-25,NA
1,18,2018-05-25,NA
Binary file modified figures/bookstats-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/spatial-package-growth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ebc61a9

Please sign in to comment.