-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
680fb85
commit ac6fd52
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
^README\.Rmd$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
output: github_document | ||
--- | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file --> | ||
|
||
```{r setup, include = FALSE} | ||
knitr::opts_chunk$set( | ||
collapse = TRUE, | ||
comment = "#>" | ||
) | ||
``` | ||
|
||
# TDS (Transport Data Science) | ||
|
||
This repo support teaching of the Transport Data Science module, part of the Mathematical Modelling for Transport ([MMT](http://www.its.leeds.ac.uk/courses/masters/msc-mathematical-modelling-transport/)) MSc course at the Institute for Transport Studies. | ||
|
||
The module catalogue can be found at [`catalogue.md`](https://github.com/ITSLeeds/TDS/blob/master/catalogue.md). | ||
The code accompanying the course can be found in the `code` folders. | ||
To run this code you will need R and Python installed plus various packages and libraries. | ||
This software has been packaged-up into a docker container to ease teaching. | ||
|
||
# Software | ||
|
||
After you have [installed docker](https://docs.docker.com/install/), you should be able to run the software by executing the following commands in a terminal such as Windows PowerShell or the default terminal on Linx and MAC operating systems: | ||
|
||
```bash | ||
docker run -d -p 8787:8787 -v $(pwd):/home/rstudio/data robinlovelace/tds | ||
``` | ||
|
||
This will: | ||
|
||
- Pull the docker image from https://hub.docker.com/r/robinlovelace/tds/ if it's not already on your computer | ||
- Launch a locally hosted instance of RStudio Server which can be accessed at http://localhost:8787/ | ||
- Mount your current working dirctory to the data folder in the home directly of the docker image | ||
|
||
After navigating to http://localhost:8787/ in a browser you should see a login screen. Username and password are rstudio. See https://github.com/rocker-org/rocker/wiki/Using-the-RStudio-image for details. | ||
|
||
Once in the container you can use all the R packages. | ||
To access the pre-installed Python packages you will need to enter `conda activate` and then `python` to go into the Python shell. | ||
A demonstration showing the `tds` docker image in action is illustrated below. | ||
|
||
# Issues and contributing | ||
|
||
Any feedback or contributions to this repo are welcome. | ||
If you have a question please open an issue here (you'll need a GitHub account): https://github.com/ITSLeeds/TDS/issues | ||
|
||
# Other projects | ||
|
||
- A book on R for Geocomputation: https://github.com/Robinlovelace/geocompr | ||
- A Python package for OSM data analysis: https://github.com/gboeing/osmnx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file --> | ||
TDS (Transport Data Science) | ||
============================ | ||
|
||
This repo support teaching of the Transport Data Science module, part of the Mathematical Modelling for Transport ([MMT](http://www.its.leeds.ac.uk/courses/masters/msc-mathematical-modelling-transport/)) MSc course at the Institute for Transport Studies. | ||
|
||
The module catalogue can be found at [`catalogue.md`](https://github.com/ITSLeeds/TDS/blob/master/catalogue.md). The code accompanying the course can be found in the `code` folders. To run this code you will need R and Python installed plus various packages and libraries. This software has been packaged-up into a docker container to ease teaching. | ||
|
||
Software | ||
======== | ||
|
||
After you have [installed docker](https://docs.docker.com/install/), you should be able to run the software by executing the following commands in a terminal such as Windows PowerShell or the default terminal on Linx and MAC operating systems: | ||
|
||
``` bash | ||
docker run -d -p 8787:8787 -v $(pwd):/home/rstudio/data robinlovelace/tds | ||
``` | ||
|
||
This will: | ||
|
||
- Pull the docker image from <https://hub.docker.com/r/robinlovelace/tds/> if it's not already on your computer | ||
- Launch a locally hosted instance of RStudio Server which can be accessed at <http://localhost:8787/> | ||
- Mount your current working dirctory to the data folder in the home directly of the docker image | ||
|
||
After navigating to <http://localhost:8787/> in a browser you should see a login screen. Username and password are rstudio. See <https://github.com/rocker-org/rocker/wiki/Using-the-RStudio-image> for details. | ||
|
||
Once in the container you can use all the R packages. To access the pre-installed Python packages you will need to enter `conda activate` and then `python` to go into the Python shell. A demonstration showing the `tds` docker image in action is illustrated below. | ||
|
||
Issues and contributing | ||
======================= | ||
|
||
Any feedback or contributions to this repo are welcome. If you have a question please open an issue here (you'll need a GitHub account): <https://github.com/ITSLeeds/TDS/issues> | ||
|
||
Other projects | ||
============== | ||
|
||
- A book on R for Geocomputation: <https://github.com/Robinlovelace/geocompr> | ||
- A Python package for OSM data analysis: <https://github.com/gboeing/osmnx> |