This lesson is being piloted (Beta version)

OTN x FACT - R Acoustic Telemetry Workshop, December 2020: Setup

Requirements

You will requre 1) all the correct programs, 2) all the listed R packages 3) the dataset and code. Instructions for all these are below.

Please see the attached document for program instructions: - Program Install Instructions.docx

Once all of the programs are installed, open RStudio and run the below package install scripts. It’s best to run it line by line instead of all at once in case there are errors.

Note: When running through the installs, you may encounter a prompt asking you to upgrade dependent packages. Choosing Option 3: None, works in most situations and will prevent upgrades of packages you weren’t explicitly looking to upgrade.

Day 1 Workshop Requirements


# Tidyverse (data cleaning and arrangement)
install.packages('tidyverse')

# Lubridate - same group as Tidyverse, improves the process of creating date objects
install.packages('lubridate')

# GGmap - complimentary to ggplot2, which is in the Tidyverse
install.packages('ggmap')

# Plotly - Interactive web-based data visualization
install.packages('plotly')

Day 2 Workshop Requirements

Note: When running through the installs, you may encounter a prompt asking you to upgrade dependent packages. Choosing Option 3: None, works in most situations and will prevent upgrades of packages you weren’t explicitly looking to upgrade.

# Tidyverse (data cleaning and arrangement)
install.packages('tidyverse')

# VTrack - Tools for Telemetry Analysis
install.packages("devtools")
library(devtools)
devtools::install_github("rossdwyer/VTrack")

# GLATOS - acoustic telemetry package that does filtering, vis, array simulation, etc.
install.packages('remotes')
library(remotes)
install_url("https://gitlab.oceantrack.org/GreatLakes/glatos/-/raw/fact-workshop-2020/glatos_0.4.2.1.tar.gz",
			build_opts = c("--no-resave-data", "--no-manual"))

# Lubridate - part of Tidyverse, improves the process of creating date objects
install.packages('lubridate')

# GGmap - complimentary to ggplot2, which is in the Tidyverse
install.packages('ggmap')

#SP and Raster packages for mapping.
install.packages('sp')
install.packages('raster')


# Install actel
library(remotes)
remotes::install_github("hugomflavio/actel", build_opts = c("--no-resave-data", "--no-manual"), build_vignettes = TRUE)

Dataset and Code

Once the above packages are installed, you can download the datasets and code for this workshop from this link

  1. Select the GREEN “Code” button at the top and choose “Download ZIP”
  2. Unzip the folder and move to secure location on your computer (Documents, Desktop etc.)
  3. Copy the folder’s path and use it to set your working directly in R using setwd('<path-to-folder>').

If you are familiar with Git and Github, feel free to clone this repository as you normally would, by running git clone https://github.com/ocean-tracking-network/2020-12-17-telemetry-packages-FACT.git in a terminal program and following from step 3 above.