Coder Social home page Coder Social logo

robinlovelace / foss4g-workshop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sfnetworks/foss4g-workshop

0.0 2.0 0.0 8.68 MB

Material for FOSS4G 2022 workshop on tidy spatial network analysis with sfnetworks

Home Page: https://sfnetworks.github.io/foss4g-workshop/slides/slides

Shell 0.18% JavaScript 0.87% R 32.50% CSS 10.01% HTML 54.59% Dockerfile 1.85%

foss4g-workshop's Introduction

sfnetworks: Tidy Geospatial Networks in R

Binder

Material for FOSS4G 2022 workshop on tidy spatial network analysis with sfnetworks

How to follow the tutorial

Option 1: Binder

Launch the Binder environment with the badge at the top of the README. This will open an RStudio session where you can follow along. Please be patient, the first time you run in can take a while.

Option 2: Docker

You can create a Docker container with all the packages needed. The main pre-requisite is to install Docker if you do not have it already. See instructions for Windows here and for Linux here.

Once you have Docker available, you can clone this repo, navigate to docker/ and run:

docker build -t sfnetworks .

This will build a Docker container based on the Dockerfile in that directory.

Then to start the container for the first time run:

cd ..
bash ./docker/create_container.sh

Troubleshoot - Windows:

  • You might need to run sh ./docker/create_container.sh

  • Make sure to update your working directory to mount a volume to the current directory inside create_container.sh, specifically this line: -v CHANGE_DIR_HERE://home/rstudio/workdir \. Note the extra / before home.

Option 3: You are an R-Spatial user

If this is not your first time doing R-Spatial, it is likely that you already count with all the artillery needed to work with sfnetworks on your local machine.

If that is the case, you would need to install the following packages:

install.packages('dbscan')
install.packages('igraph')
install.packages('mapview')
install.packages('tidygraph')
install.packages('TSP')
install.packages('tidyverse')
devtools::install_github('luukvdmeer/sfnetworks')
devtools::install_github('ropensci/osmextract')

Question or problems?

If you have any question related to running this tutorial, please open an issue here.

If you have been using sfnetworks already and have an interesting problem to discuss, you can go to our Discussions tab of the package here.

foss4g-workshop's People

Contributors

loreabad6 avatar agila5 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.