MyNixOS website logo
Description

End-to-End Marine Food Web Model.

A dynamic model of the big-picture, whole ecosystem effects of hydrodynamics, temperature, nutrients, and fishing on continental shelf marine food webs. The package is described in: Heath, M.R., Speirs, D.C., Thurlbeck, I. and Wilson, R.J. (2020) <doi:10.1111/2041-210X.13510> StrathE2E2: An R package for modelling the dynamics of marine food webs and fisheries. 8pp.

StrathE2E2

R package containing the Strath End-to-end ecosystem model.

General Requirements

StrathE2E2 runs on the following platforms:

  • Mac OS X
  • Linux (64-bit)
  • Windows (64-bit, Windows 10 recommended)

with the following minimum runtime:

  • R 3.6 or later
  • R packages deSolve, NetIndices

Installation

There is a source package for Linux and binary packages for Windows 10 and Mac OS X in our CRAN compatible R package repository.

To install StrathE2E2, use install.packages() function and specify our repository:

install.packages("StrathE2E2", repos="https://marineresourcemodelling.gitlab.io/sran")

which will install either the source or binary package (depends on your OS).

Quick Start

To run the model:

library(StrathE2E2)
model <- e2e_read("North_Sea","1970-1999")
results <- e2e_run(model, nyears=5)
e2e_plot_ts(model,results)

Within R, type help.start() and navigate to the package documentation for various user and technical guides,

Building from source

The source package can be built on all platforms, and is the only way to install on Linux.

Download latest version from Strath E2E2 GitLab repository (use the repository download button).

In addition to the standard requirements, some additional R packages are required to build the package documentation (vignettes):

  • knitr
  • rmarkdown

For each platform there are some additional software requirements - see the individual platform build sections below.

Linux build

Full requirements for Linux build:

RequirementURL/Comment
Rhttps://cran.r-project.org/bin/windows/
R packagesdeSolve, NetIndices, knitr, rmarkdown
pandochttps://pandoc.org/
Texlivehttps://www.tug.org/texlive/

Usually Linux distributions will have everything either already installed, or available for install via the system package manager.

At a terminal prompt, try:

> R CMD INSTALL StrathE2E2-master.tar.gz

The package will be installed in your local R library folder (often ~/R).

Windows build

Full requirements for Windows build:

RequirementURL/Comment
Rhttps://cran.r-project.org/bin/windows/
R packagesdeSolve, NetIndices, knitr, rmarkdown
Rtoolshttps://cran.r-project.org/bin/windows/Rtools
pandochttps://pandoc.org/
MikTeXhttps://miktex.org/
pdfpageshttps://ctan.org/pkg/pdfpages

Install Rtools as administrator and make sure the box to Add rtools to the system PATH is checked.

Add the R bin folder to the system PATH as well. Go to Control Panel->System and Security->System then select Advanced system settings. Click on the Environment Variables button edit the PATH variable, adding the path to the R bin folder, something like:

> C:\Program Files\R\R-3.6.1\bin

If you upgrade R at a later date you must remember to update this PATH setting as well.

In a cmdtool navigate to working folder where the unpacked source code resides in a sub-folder.

Start R and run:

> library(devtools)
> document("StrathE2E2")

Then on command line:

> R CMD build StrathE2E2
> R CMD INSTALL --build StrathE2E2_3.3.0.tar.gz

This will build the binary package StrathE2E2_3.3.0.zip

MacOS X build

Full requirements for MacOS build:

RequirementURL/Comment
Rhttps://cran.r-project.org/bin/macosx
R packages:deSolve, NetIndices, knitr, rmarkdown
X11 Quartzhttps://www.xquartz.org/
pandochttps://pandoc.org/
MacTeXhttps://www.tug.org/mactex

make sure to restart any terminal applications after installing these packages.

Within a Terminal, unpack the downloaded source package and install/build:

tar zxvf StrathE2E2_3.3.0.tar.gz
R CMD INSTALL --build StrathE2E2

If the command line developer tools are missing you should accept the offer of installing them.

A successful build will install the package in R, and there will also be a binary package file StrathE2E2_3.3.0.tgz created.

Metadata

Version

3.3.0

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows