GithubHelp home page GithubHelp logo

macrosystemseddie / module9 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 52.83 MB

Repository for the R Shiny materials for Macrosystems EDDIE Module 9

Home Page: https://macrosystemseddie.shinyapps.io/module9/

R 98.15% HTML 0.21% CSS 1.64%

module9's Introduction

Module 9: Using High-Frequency Data to Manage Water Quality

DOI

Summary

Here is the code for running the Macrosystems EDDIE Module 9: Using High-Frequency Data to Manage Water Quality. Below are instructions on how to access the Shiny app via a web browser and also a detailed guide below for launching the R Shiny App locally on your own computer. For more details about teaching this module please visit our website.

Accessing the Shiny App via a web browser

The Shiny app for this module can be accessed through any internet browser on shinyapps.io. When first launching it will take a while for the Shiny app to boot up.

Running the Shiny App locally on your computer

Pre-requisites

  1. Latest version of R installed.
  2. Latest version of RStudio.

Step 1: Download this repository

There are two options:

  1. Download the repository as a .zip file. (Easiest option).
    a. Click the green "Code" button on this page and select "Download ZIP".
    b. Unzip this file on your computer.
  2. Clone this repository into RStudio.
    a. Open RStudio.
    b. Click "File > New Project...".
    c. In the "Create Project dialog select "Version Control: Checkout a project from a version control repository".
    d. Select "Git: Clone a project from a Git repository.
    e. In the "Repository URL:" option input the URL to this repository, select where to save the project directory.
    f. Click "Create Project".
    g. You will then have a project with all the files from this repository.

Step 2: Install required R packages

  1. The list of required of packages is detailed in the install.R script in this repository. Open and run this script to install the necessary packages.
    Watch out for errors in package installation. Most can be avoided using the most up-to-date version of R (4.0.3 as of 2021-01-22).
    Updating of current R packages on your system is recommended.

Step 3: Launch Shiny App

  1. Open the script app.R in your console.
  2. Click the "Run App" button in the Script (indicated below).
  3. This will launch the Shiny App in your default web browser or in a new RStudio window. The Shiny App is run from RStudio so you will need to keep RStudio running in the background.

Quickstart option

Here is an alternative way to quickly launch the Shiny app in less than a minute, but can be prone to package installation errors if your packages have not been updated recently.

# Step 1. Install required R packages
source("https://raw.githubusercontent.com/MacrosystemsEDDIE/module7/main/install.R")

# Step 2. Launch Shiny app
shiny::runGitHub("module7", "MacrosystemsEDDIE", ref = "main", subdir = "app")

Questions & Feedback

If you have any questions, comments or feedback related to these materials you can send an email to [email protected].

module9's People

Contributors

melofton avatar

Watchers

Cayelan Carey avatar Quinn Thomas avatar

Forkers

melofton cayelan

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.