knitr::opts_chunk$set(echo = TRUE)

Requirements

Installation

remotes::install_github("BigelowLab/azmpcfin")

Initial Use

The premise of this package is that data may be stored in a single location but accessed by many users. To achieve this resource-friendly goal and still simplified access for each user, we need to inform the package where the data resides. We do this by storing the path to the data location in each user's home directory in a hidden text file, "~/.azmpcfin". That text file has just one line in it which contains the full path to the shared dataset. For example, the author's contains mnt/ecocast/coredata/dfompo/AZMP_data which points to a shared network drive mounted on our linux platform.

When the package is first loaded (ala library(azmpcfin)) the existence of the file is check, and if missing a warning is issued.

You can create and populate that ~/.azmpcfin using a text editors, or you can create using the provided function set_data_path(). Here is how the author created his own...

library(azmpcfin)
azmpcfin::set_data_path("/mnt/ecocast/coredata/dfompo/AZMP_data")

That's it. If you ever move the data you'll have to modify the contents of this hidden text file.

Read the calanus data

```r suppressPackageStartupMessages({ library(dplyr) library(azmpcfin) })

x <- read_calanus() glimpse(x)



BigelowLab/azmpcfin documentation built on March 19, 2022, 2:23 a.m.