forked from ices-taf-dev/ices_cat_3_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
56 lines (45 loc) · 1.66 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: "2022_ple.27.7e_assessment"
output: github_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Plaice (_Pleuronectes platessa_) in Division 7.e (western English Channel) - WGCSE 2022 (not 2023).
This repository recreates the stock assessment for plaice (_Pleuronectes platessa_) in Division 7.e (western English Channel) in `R` from WGCSE 2022 - not yet updated for 2023.
## R packages
The following R packages from CRAN are required to run the assessment:
```{r, eval = FALSE}
TAF
```
They can be installed with:
```{r, eval = FALSE}
### list with required packages
req_pkgs <- c("TAF")
### install/update packages
install.packages(req_pkgs)
```
Furthermore, the following packages from GitHub are required:
```{r, eval = FALSE}
cat3advice
```
For exact reproducibility, it is recommended to use exactly the same package version as used in the assessment. These package are automatically installed into a local library when running the TAF assessment (see below) or by calling
``` {r, eval = FALSE}
taf.boot()
```
Alternatively, they can be manually installed from GitHub with
``` {r, eval = FALSE}
TAF::taf.libPaths() # install packages into local TAF library
remotes::install_github("shfischer/cat3advice", ref = "ad220eb")
```
## Running the assessment
The easiest way to run the assessment is to clone or download this repository, navigate into the repository with R and run:
```{r, eval = FALSE}
### load the icesTAF package
library(TAF)
### load data and install R packages
taf.boot()
### run all scripts
sourceAll()
```
This code snippet runs the data compilation and assessment and creates the tables and figures presented in the WG report.