Install R and RStudio

For full set-up instructions including Git and GitHub (optional), go to full setup

Set up a folder and RStudio project for the labs

  1. Open RStudio and ‘New Project’ in the upper right. Select ‘From Existing Directory’ if you have previously created a folder for the course and select ‘New Directory’ if you have not.

  2. To work on a lab, copy the Rmd or R file to this folder.

  3. Next time you open RStudio, you can select your project from the upper right.

Download FishForecast Package

  1. I have created a package on GitHub that will install the packages you need and the data files for the labs. Installing the package will probably take awhile as the first time you do it, many packages will be loaded.
if(!("devtools" %in% installed.packages()))
  install.packages("devtools")
devtools::install_github("Fish-Forecast/FishForecast")
The FishForecast package will install the packages listed under “Imports:”
Package: FishForecast
Title: Packages, data and scripts for Fisheries Catch Forecasting with R
Version: 1.1
Author: Eli Holmes
Maintainer: Eli Holmes 
Description: This package that will load the needed packages and data files for the Fish Forecast course material when students install from GitHub.
Depends: R (>= 3.4.1)
Imports: 
  devtools,
  dplyr (>= 0.7.5),
  forecast (>= 8.4),
  ggplot2 (>= 3.0.0),
  grid (>= 3.4.1),
  gridExtra (>= 2.3),
  knitr (>= 1.20),
  magrittr (>= 1.5),
  reshape2 (>= 1.4.3),
  stringr (>= 1.3.1),
  tseries (>= 0.10-45),
  urca (>= 1.3-0),
  kableExtra (>= 0.9.0),
  rmarkdown (>= 1.10),
  MARSS (>= 3.10.8),
  olsrr (>= 0.5.2),
  corrplot (>= 0.84),
  car (>= 3.0-3),
  caret (>= 6.0-84),
  Hmisc (>= 4.2-0),
  leaps (>= 3.0),
  lmtest (>= 0.9-37),
  relaimpo (>= 2.2-3),
  astsa (>= 1.9)
License: GPL-2
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.0.2