pacea

An R package of Pacific ecosystem information to help facilitate an ecosystem approach to fisheries management.

https://github.com/pbs-assess/pacea

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 7 DOI reference(s) in README
  • Academic publication links
    Links to: sciencedirect.com, zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.2%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

An R package of Pacific ecosystem information to help facilitate an ecosystem approach to fisheries management.

Basic Info
  • Host: GitHub
  • Owner: pbs-assess
  • License: other
  • Language: HTML
  • Default Branch: main
  • Homepage:
  • Size: 518 MB
Statistics
  • Stars: 14
  • Watchers: 13
  • Forks: 1
  • Open Issues: 38
  • Releases: 1
Created over 4 years ago · Last pushed 10 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE, eval = FALSE}
load_all()
rmarkdown::render("README.Rmd")
```


```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "60%"
  )
library(tibble)
```

# pacea 


[![R-CMD-check](https://github.com/pbs-assess/pacea/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/pbs-assess/pacea/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/pbs-assess/pacea/graph/badge.svg?token=93afkFJUVL)](https://codecov.io/gh/pbs-assess/pacea)
[![DOI](https://zenodo.org/badge/417554147.svg)](https://zenodo.org/doi/10.5281/zenodo.13840804)
![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Fpbs-assess%2Fpacea&label=VISITORS&countColor=%23263759&style=flat&labelStyle=lower)


An R package of Pacific ecosystem information to help facilitate an ecosystem
approach to fisheries management.

*We wrangle the data so you don't have to*

pacea stands for PACific Ecosystem Approach, and is pronounced 'pac-ee-a', with pac as in Pacific.

pacea is a R package containing a variety of data
sets and model output. We wrangle the data sets behind the scenes to get them into usable formats
in R, and provide helpful plotting functions. All data sets include
documentation regarding the original sources and authors, who should be cited
and consulted as appropriate.

Please continue reading through this README file, and especially see the [vignettes
section](https://github.com/pbs-assess/pacea?tab=readme-ov-file#vignettes) to get started.

## What is in pacea?

Currently, pacea contains:

 - `r format(nrow(buoy_sst), big.mark = ",")` calculations of daily sea surface
   temperature based on data from `r nrow(buoy_metadata)` buoys. **Updated monthly.**

 - outputs from the spatial British Columbia continental margin (BCCM) model, the coupled
   physical-biogeochemical model by Pea et al. (2019). Variables are available
   for (a) 40,580 spatial cells across Canada's Pacific
   Exclusive Economic Zone, and **NEW** (b) 161,025 spatial cells across a larger
   domain, extending into US waters. Variables are given as 27 years of monthly means (from
   1993 to 2019). The variables are:
   - dissolved oxygen concentration
   - pH
   - salinity
   - temperature
   - depth-integrated phytoplankton
   - depth-integrated primary production.

   For applicable variables these are given for
   - sea surface
   - 0-40 m integration
   - 40-100 m integration
   - 100 m to the sea bottom
   - sea bottom.

- NOAA's spatial Optimum Interpolation Sea Surface Temperature (OISST) record, that incorporates observations from different platforms (satellites,
     ships, buoys, and Argo floats):
   - provided as weekly and monthly means from `r paste(lubridate::month(min(oisst_month$start_date), label = TRUE),
     lubridate::year(min(oisst_month$start_date)))` to `r paste(lubridate::month(max(oisst_month$start_date), label = TRUE),
     lubridate::year(max(oisst_month$start_date)))`. **Updated monthly.**

- outputs from the Hindcast of the Salish Sea (HOTSSea) physical oceanography model that
  recreates conditions throughout the Salish Sea from 1980 to 2018 [(Oldford et
  al., in review)](https://doi.org/10.5194/gmd-2024-58). Statistics regarding
  temperature and salinity are available at the same 2 km x 2 km spatial
  resolution as the full BCCM results. Specifically, values of minimum, mean, maximum, and
  standard deviation (over each month) are available for:
   - sea surface
   - 0-30 m integration
   - 30-150 m integration
   - 150 m to the sea bottom
   - sea bottom.

- 10 climatic and oceanographic indices, such as the Pacific Decadal Oscillation
   and those related to El Nio. **Updated monthly, new one added.**

- estimates of abundances for Harbour Seals.

- estimates of biomass and annual recruitments for Pacific Hake
  and Pacific Herring. **Updated annually.**

- zooplankton biomass anomalies in the Strait of Georgia, for 25
  species groups, from 1996 onwards. **Updated annually.**

- Fraser River discharge monthly means and monthly peaks, from 1912 onwards.
  **Updated monthly.**


Plotting and helper functions are provided, and demonstrated in the detailed vignettes. All
data and model outputs are fully documented and referenced.

## What's new (since the original release)?

The values highlighed above with **Updated monthly** have been updated each
month since the release of pacea, as documented in the [NEWS](NEWS.md), which it
is advisable to check when you update your pacea installation (see below). Since the initial release we have
also added the following in response to user requests (some are documented in
the Issues) with latest first:

- for Pacific Hake, added estimates of total biomass of age-1 fish and
  recruitment deviations (required updating some plotting and tickmark functions
  which should all
  still be back compatible); see the
  [populations.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/populations.html)
  vignette.

- added Mike Malick's oceanographic index: `bi`, the North Pacific Current
  Bifurcation Index; see the [indices
  vignette](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/indices.html)
  and `?bi`.

- added results from the Hindcast of the Salish Sea (HOTSSea) physical oceanography model that
  recreates conditions throughout the Salish Sea from 1980 to 2018. See the new [hotssea vignette](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/hotssea.html).

- added results from the BCCM model over its full original domain (rather than
  just restricted to Canada's Exclusive Economic Zone), see the new [bccm_full vignette](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/bccm_full.html).

- added depths for the `grid26` model domain, see `?grid26_depth`.

- updated citation information (incremented the year, added a DOI through Zenodo, and added two new co-authors:
  Kelsey Flynn and Greig Oldford), see `citation("pacea") or scroll down below.

- added Pacific Herring stock assessment results, for spawning stock biomass and
  age-2 recruitment for each of the five major stock assessment regions; see the
  [populations.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/populations.html)
  vignette.

- added helper function `a()`, shorthand for `as.data.frame()`, see examples in
  `?a`.

- extended calculations of the Aleutian Low Pressure Index (ALPI) up to 2022;
  they were originally only available to 2015. The Aleutian Low was mentioned in
  several talks at the 2024 State of the Pacific Ocean meeting, motivating us to
  update the values here.

- added zooplankton biomass anomalies for the Strait of Georgia, with a new
  vignette: [zooplankton.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/zooplankton.html).

- updated the estimates of Pacific Hake abundance and recruitment with values
  from the 2024 assessment (retaining the original estimates from the 2023
  assessments for reproducibility); see the
  [populations.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/populations.html)
  vignette.

- added Fraser River discharge values, for each month since 1912. See the
  [fraser_discharge.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/fraser_discharge.html) vignette.


## Brief examples of some questions that can be quickly visualised (see vignettes for full details)

**How does this year's sea surface temperature (red curve) in West Dixon Entrance compare to previous
years, based on the buoy there?**

```{r northhecatetempmakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-north-hecate-temp.png"), # keeping
                                    # filename even though have changed buoy
    width = 670,   # 670 matches size from running from a chunk
    height = 480)
plot(buoy_sst) # stn_id = "C46183")
dev.off()
```

```{r northhecatetemp, eval = FALSE}
plot(buoy_sst)    # Buoy C46205 is plotted by default
```

![](man/figures/README-north-hecate-temp.png){width=80%}

**Are we experiencing a phase of El Nio, based on the Oceanic Nio Index? (If the
last bars are red and above 0.5, then 'yes')**

```{r onimakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-oni.png"),
    width = 670,   # 670 matches size from running from a chunk
    height = 480)
plot(oni)
dev.off()
```

```{r oni, eval = FALSE}
plot(oni)
```

![](man/figures/README-oni.png){width=80%}

**How has the status of the Pacific Decadal Oscillation changed over time?**
```{r pdomakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-pdo.png"),
    width = 670,   # 670 matches size from running from a chunk
    height = 480)
plot(pdo)
dev.off()
```

```{r pdo, eval = FALSE}
plot(pdo)
```

![](man/figures/README-pdo.png){width=80%}

**What were the differences in spatial pattern of sea surface temperature between June 2022 and 2023 (using OISST data)?**
```{r oisstmakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-oisst.png"),
    width = 670,   # 670 matches size from running from a chunk
    height = 480)
plot(oisst_month,
     months.plot = "June",
     years.plot = c(2022, 2023))
dev.off()
```

```{r oisst, eval = FALSE}
plot(oisst_month,
     months.plot = "June",
     years.plot = c(2022, 2023))
```

![](man/figures/README-oisst.png){width=80%}

**How did the upper 40m of dissolved oxygen differ between January and June, in 2015 (using BCCM results restricted to Canada's Exclusive Economic Zone)?**
```{r bccmmakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-bccm.png"),
    width = 670,   # 670 matches size from running from a chunk
    height = 480)
plot(bccm_avg0to40m_oxygen(force = TRUE),
     months.plot = c(1, 6),
     years.plot = 2015)
dev.off()
```

```{r bccm, eval = FALSE}
plot(bccm_avg0to40m_oxygen(force = TRUE),
     months.plot = c(1, 6),
     years.plot = 2015)
```

![](man/figures/README-bccm.png){width=80%}

**How did depth-integrated primary production vary spatially and with each month throughout 2018, using the BCCM results for its full spatial domain?**

```{r bccmfullmakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-bccm_full.png"),
    width = 960,   # 670 matches size from running from a chunk
    height = 960)
plot(bccm_primaryproduction_full(),
     months = 1:12)
dev.off()
```

```{r bccmfull, eval = FALSE}
plot(bccm_primaryproduction_full(),
     months = 1:12)
```

![](man/figures/README-bccm_full.png){width=100%}

**How did estimated maximum (over each month) depth-integrated temperature over the top 30 m change in the Salish Sea for January and September in three different years?**

```{r hotsseamakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-hotssea.png"),
    width = 960,   # 670 matches size from running from a chunk
    height = 960)
plot(hotssea_avg0to30m_temperature_max(),
     months = c("January", "September"),
     years = c(1995, 2010, 2018),
     eez = FALSE)
dev.off()
```

```{r hotssea, eval = FALSE}
plot(hotssea_avg0to30m_temperature_max(),
     months = c("January", "September"),
     years = c(1995, 2010, 2018),
     eez = FALSE)
```

![](man/figures/README-hotssea.png){width=100%}

**How has estimated Pacific Herring recruitment changed over time in each of the five major assessment regions?**

```{r herringmakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-herring.png"),
    width = 670,   # 670 matches size from running from a chunk
    height = 960)
plot(herring_recruitment)
dev.off()
```

```{r herringplot, eval = FALSE}
plot(herring_recruitment)
```

![](man/figures/README-herring.png){width=80%}


**How has estimated Pacific Hake spawning biomass (from California to BC) changed through time?**

```{r hakemakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-hake.png"),
    width = 670,   # 670 matches size from running from a chunk
    height = 480)
plot(hake_biomass)
dev.off()
```

```{r hakeplot, eval = FALSE}
plot(hake_biomass)
```

![](man/figures/README-hake.png){width=80%}


**What is the estimated abundance of Pacific Harbour Seals for each of seven regions?**
```{r harboursealsmakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-harbour-seals.png"),
    width = 670,   # 670 matches size from running from a chunk
    height = 480)
plot(harbour_seals)
dev.off()
```

```{r sealplot, eval = FALSE}
plot(harbour_seals)
```

![](man/figures/README-harbour-seals.png){width=80%}

**How has zooplankton biomass in the Strait of Georgia changed since 1996?**
```{r zooplanktonmakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-zooplankton.png"),
    width = 670,   # 670 matches size from running from a chunk
    height = 480)
plot(zooplankton_sog)
dev.off()
```

```{r zooplanktonplot, eval = FALSE}
plot(zooplankton_sog)
```

![](man/figures/README-zooplankton.png){width=80%}


**How has Fraser River monthly mean discharge at Hope changed since 2000?**

```{r frasermakefig, eval = FALSE, echo = FALSE}
png(paste0(here::here(), "/man/figures/README-fraser.png"),
    width = 670,   # 670 matches size from running from a chunk
    height = 480)
plot(fraser_discharge_mean,
     xlim = c(lubridate::dmy(01012000),
              lubridate::dmy(01012026)))
dev.off()
```

```{r, fraserplot, eval = FALSE}
plot(fraser_discharge_mean,
     xlim = c(lubridate::dmy(01012000),
              lubridate::dmy(01012026)))
```

![](man/figures/README-fraser.png){width=80%}

You can view and analyse all these data sets in the usual way in R. For example:
```{r onivalues}
oni
```

**What climatic and oceanographic indices are currently available, and over what
years?**

```{r indicestable}
knitr::kable(pacea_indices)
```

## Vignettes

For more detailed explanations of the data sets and functionality see the
vignettes, which are already rendered here (note that we do not automatically
update them when the data in pacea are updated, so if you run them locally you
may get more up-to-date values):

* [indices.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/indices.html)
  Climatic and oceanographic indices and associated plotting functions.
* [buoys.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/buoys.html)
  Calculated daily mean sea surface temperatures and associated plotting functions.
* [populations.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/populations.html)
  Estimates of animal populations and associated plotting functions.
* [oisst.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/oisst.html)
  OISST data and calculations and associated plotting functions.
* [bccm.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/bccm.html)
  BCCM model results restricted to Canada's Exclusive Economic Zone, calculations, and associated plotting functions.
* [bccm_full.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/bccm_full.html)
  BCCM model results over the full model domain, calculations, and associated plotting functions.
* [hotssea.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/hotssea.html)
  HOTSSea model results and associated plotting functions.
* [zooplankton.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/zooplankton.html)
  Zooplankton anomalies for the Strait of Georgia, calculations, and associated plotting functions.
* [fraser_discharge.html](http://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/fraser_discharge.html)
  Fraser River discharge monthly means and peaks, and associated plotting functions.

The presentations where we introduced `pacea` are available as .pdf. [Here is the DFO
version (10th November 2023)](talks/pacea-release-talk-dfo.pdf) and
[here is the UVic Ecostats version (21st November
2023)](talks/pacea-release-talk-uvic.pdf). The code to build them is [here as
.Rmd](talks/pacea-release-talk.Rmd).

## Installation

Okay, if you're convinced this package might be useful for you, then to install
the latest version just:

```
install.packages("remotes")    # If you do not already have the "remotes" package

remotes::install_github("pbs-assess/pacea")
```

If you get an error like
```
Error in utils::download.file(....)
```
then the connection may be timing out (happens to us on the DFO network). Try

```
options(timeout = 1200)
```
and then try and install again. If you get a different error then post an Issue
or contact Andy or Travis for help.

## Updates

We plan to continually enhance `pacea` by updating current data sets and adding
new ones, as well as adding functionality. To explain these, we will document them
by date in the [NEWS](NEWS.md).

We plan to update the indices, buoy temperatures, and OISST values on the 20th of every month (or soon
after), which should capture updates to those data.

To check what date you installed `pacea` locally
on your machine, we have the helper command:

```{r installed, eval=FALSE}
pacea_installed()

You last locally installed pacea on 2023-11-01 which is 8 days ago.

Compare that with the updates in the NEWS file (and you can also check dates of the latest commits at
https://github.com/pbs-assess/pacea/commits/main)
```

The commits tell you when we last changed something, while the [NEWS](NEWS.md)
will give a more concise summary of changes by date. Then you may wish to update
`pacea` by running `remotes::install_github("pbs-assess/pacea")` again.

## Audience and motivation

The primary audience is stock assessment scientists who want to analyse
environmental variables in the context of their stock assessment (but we
anticipate other interested users). The Fisheries Act requires management of fisheries to take into account "[the biology of the fish and the environmental conditions affecting the stock](https://laws-lois.justice.gc.ca/eng/acts/f-14/page-3.html#h-1175547)". Such an Ecosystem Approach to Fisheries Management requires data.

A comprehensive [2022 analysis of Canadian stock assessments](https://publications.gc.ca/collections/collection_2022/mpo-dfo/Fs97-6-3473-eng.pdf) found that availability of data on environmental variables was the leading cause of not integrating such information into assessments. pacea aims to help make data availability more streamlined, and avoid each individual assessment scientist having to figure out themselves where to get appropriate data.

This work is strongly motivated by, and based on, the [GSLea](https://github.com/duplisea/gslea) R package by Dan Duplisea and colleagues for the Gulf of St Lawrence.

## Citation

If you use `pacea` in your work then please cite it as (NOTE this has been
updated since the original release):

Edwards A.M., Tai T.C., Watson J., Pea M.A., Hilborn A., Hannah C.G., Rooper
  C.N., Flynn K.L., and Oldford, G.L. (2024). pacea: An R package of Pacific ecosystem information to
  help facilitate an ecosystem approach to fisheries management.
  , 

You may wish to add the date you installed it (using `pacea_installed()`). Use
`citation("pacea")` to get a version for LaTeX and R Markdown
bibliographies. Although the DOI badge at the top of this page ends in ...805,
the ...804 DOI is preferable because that will not change with any future
updates to the GitHub tag. So ...804 seems simpler and more consistent to use (thanks!).

Also let us know of any applications. This will help us devote effort into
maintaining `pacea`.

## Acknowledgments

This work is funded by a Competitive Science Research Fund grant from Fisheries
and Oceans Canada (project 21-FS-03-13).

We thank the following for contributing ideas, example code for ROMS output, model output,
and/or helping with ideas and coding issues:

- Jessica Nephin, Lindsay Davidson, Strahan Tucker,
  Brianna Wright, Patrick Thompson, Matt Grinnell, Sean Anderson, Philina
  English, Chris Grandin, Jennifer Boldt, Kelly Young, and others.

And a big thanks to Carley Colclough for expertly designing the pacea logo.

## Notes for developers

1. Please work on your own development branch to ensure that the main branch is
never broken (so users can always download the package). See below for details
on branching.

1. Edit and render the README.Rmd file, not the README.Md file. If you add any new
figures then commit and push them (they will be in
man/figures/README-) so they show up on the GitHub README. Always
render the .Rmd so that it and the rendered .Md stay in sync (see
https://github.com/pbs-assess/pacea/issues/44#issuecomment-1793235838 for how to
have Git check that README.Md is newer than README.Rmd).

1. Every data set is built using code in the `raw-data/` directory, with
documentation in `R/data.R`. Document everything!

1. If you add new functions please add tests as well so we retain good code
coverage (as indicated in the badge at the top of the README on GitHub).

1. Use the standard `lower_case_and_underscores` for naming
variables and functions.

1. Citation information is in inst/CITATION, so if you update DESCRIPTION file
(e.g. add an author) then update that also and update the citation info above.

1. Logo included by running `use_logo("inst/pacea-logo-from-carley.png")`. The .png was
expertly designed by Carley Colclough. There is also `inst/pacea-logo-for-printing.jpg`
for printing purposes.

### Branching in Git

To ensure the main branch is never broken (and so users can always download the
package), when editing package code please work on your own branch and then
merge it in. If just updating the README then we can stick with the main branch
(because messing something up should not void the package being installable).

Your own branch should be called `dev-yourname`, e.g. `dev-andy` and
`dev-travis`. If you don't yet have a branch you need to:

- create it locally (and 'check it out', i.e. move into it): `git checkout -b dev-yourname`
- tell Git where to push to: `git push --set-upstream origin dev-yourname`
  (Git will tell you this command if you do a `git push` without having run it)
- update GitHub Actions so that pushes of your branch get properly tested on
  GitHub. Just add your branch to **both** lists of branches at the top of:
  - `.github/workflows/R-CMD-check.yaml`
  - `.github/workflows/test-coverage.yaml`

- Do that as your first commit and push to check everything's working.

Once you have your branch set up then the workflow is:

1. Make sure you are all caught up on the main branch:
 - `git checkout main`
 - `git fetch`
 - `git rebase`

2. Switch to your development branch and merge the main branch into it
 - `git checkout dev-yourname`
 - `git merge main`
 - for magit users (probably just Andy), this is just `b b` and `m m` (it
   recommends arguments)

3. Do some new commits in your branch and push them in the usual way.
GitHub Actions will work on your branch.

So from a quick test, the `R-CMD-check`
badge only refers to the main branch, which is great as it should never show as
failing because we should only be breaking
things on own branch. Always having the green passing badge should inspire
consumer confidence. On
GitHub you can select your branch and see the tickmark, which will tell you if
the build has failed (or if your changes have caused the code coverage to
decline), and you'll probably get an automatic email also, just to drive home
the message. So the badges on the README on your branch still relate to the
main branch.

You can click on the codecov badge on GitHub, and then on the codecov page you
can select your branch. There are ways to check code coverage locally, but Andy
found these all take a long time (and it's easier to push and let GitHub check
the coverage). See commit 6c872da for the commands Andy tried (now deleting to
keep this README file cleaner).

4. When you are happy with your changes and ready to merge them into the main
branch, you need to
 - add any changes that users should be aware of to the [NEWS](NEWS.Md) file.

No need to mention things that are only of interest to
developers (like the commiting of these instructions). We want the NEWS to be
succinct and quickly readable so that people look at it.

Then you need to double check that the main branch is up-to-date with the
version on GitHub (someone may have pushed some changes since you last fetched),
then merge any changes back into your branch. You could just check on GitHub (if
you're the last person to have pushed to main then you are probably fine), or do
these:

 - `git checkout main`
 - `git fetch`
 - `git rebase`

 - `git checkout dev-yourname`
 - `git merge main`

If that does merge in some new commits then you should

 - `git push`
to run the GitHub Actions checks again on GitHub. If the merge says something
like you are all caught up, no merging is needed (i.e. no-one committed anything to
the main branch recenetly), then no need for the `git push`, since this entire
step will not have added any new code.

5. Now you are ready to merge your changes into the main branch, so that people
will get them when they install/update `pacea`:
 - `git checkout main`
 - `git merge dev-yourname`
 - `git push`

And you are done!
If you want, we have some aliases (such as `git co` for `git checkout` and
`git p` for `git push` listed in this example .gitconfig file:
https://raw.githubusercontent.com/quantitative-biology/module-1-git/main/misc/.gitconfig
from our e-book
https://www.quantitative-biology.ca/git-and-github.html#save-our-template-.gitconfig-file
You can put those into your `.gitconfig` file if you like.

This can help understanding on branches: https://www.atlassian.com/git/tutorials/using-branches/git-merge

Oldford, G.L., Jarnkov, T., Christensen, V., and Dunphy, M. (in review).
HOTSSea v1: a NEMO-based physical Hindcast of the Salish Sea (19802018)
supporting ecosystem model
development. Preprint. https://doi.org/10.5194/gmd-2024-58 .

Pea, M.A., Fine, I. and Callendar, W. (2019). Interannual variability in
primary production and shelf-offshore transport of nutrients along the northeast
Pacific Ocean margin. Deep-Sea Research II, doi:10.1016/j.dsr2.2019.104637.
https://www.sciencedirect.com/science/article/pii/S0967064519300220

Owner

  • Name: pbs-assess
  • Login: pbs-assess
  • Kind: organization

GitHub Events

Total
  • Create event: 1
  • Commit comment event: 10
  • Issues event: 28
  • Watch event: 1
  • Issue comment event: 52
  • Push event: 391
  • Pull request event: 4
Last Year
  • Create event: 1
  • Commit comment event: 10
  • Issues event: 28
  • Watch event: 1
  • Issue comment event: 52
  • Push event: 391
  • Pull request event: 4

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 941
  • Total Committers: 6
  • Avg Commits per committer: 156.833
  • Development Distribution Score (DDS): 0.31
Past Year
  • Commits: 194
  • Committers: 3
  • Avg Commits per committer: 64.667
  • Development Distribution Score (DDS): 0.036
Top Committers
Name Email Commits
andrew-edwards A****s@d****a 649
Travis Tai t****2@a****a 246
Watson J****n@d****a 32
Tai T****i@d****a 11
Chris Grandin c****n@g****m 2
Greig Oldford g****1@d****a 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 82
  • Total pull requests: 5
  • Average time to close issues: 5 months
  • Average time to close pull requests: 2 days
  • Total issue authors: 5
  • Total pull request authors: 3
  • Average comments per issue: 2.21
  • Average comments per pull request: 0.4
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 27
  • Pull requests: 5
  • Average time to close issues: 14 days
  • Average time to close pull requests: 2 days
  • Issue authors: 3
  • Pull request authors: 3
  • Average comments per issue: 1.04
  • Average comments per pull request: 0.4
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • andrew-edwards (74)
  • travistai2 (3)
  • ecophilina (2)
  • joenomiddlename (2)
  • EOGrady21 (1)
Pull Request Authors
  • seananderson (2)
  • andrew-edwards (2)
  • remi-daigle (1)
Top Labels
Issue Labels
for Version 1.0.0.0 (9) priority (3)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
proxy.golang.org: github.com/pbs-assess/pacea
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 10 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 3.5.0 depends
  • stats >= 4.0.2 depends
  • dplyr >= 1.0.2 imports
  • httr * imports
  • lubridate >= 1.8.0 imports
  • rappdirs * imports
  • sf >= 1.0.10 imports
  • GGally >= 2.1.0 suggests
  • Matrix * suggests
  • RColorBrewer >= 1.1 suggests
  • abind >= 1.4.5 suggests
  • assertthat >= 0.2.1 suggests
  • boot >= 1.3.25 suggests
  • exactextractr >= 0.7.1 suggests
  • gfiphc >= 0.0.0.9000 suggests
  • ggplot2 >= 3.3.5 suggests
  • ggpolypath >= 0.1.0 suggests
  • gstat * suggests
  • knitr * suggests
  • magrittr >= 2.0.1 suggests
  • maptools >= 1.1.1 suggests
  • mgcv >= 1.8.31 suggests
  • plyr >= 1.8.6 suggests
  • raster >= 3.4.13 suggests
  • rerddap >= 0.7.6 suggests
  • rgdal >= 1.5.23 suggests
  • rgeos >= 0.5.5 suggests
  • rlang >= 0.4.11 suggests
  • rmarkdown * suggests
  • sp >= 1.4.5 suggests
  • spdep >= 1.1.5 suggests
  • stringr >= 1.4.0 suggests
  • terra * suggests
  • testthat >= 3.0.0 suggests
  • tidyr >= 1.1.4 suggests
  • viridis >= 0.5.1 suggests