Installation

From R-universe

The recommended way to install evalhyd-r is to use the R-universe platform:

Install evalhyd-r from R-universe
> install.packages(
+     'evalhyd',
+     repos = c('https://hydrogr.r-universe.dev',
+               'https://cloud.r-project.org')
+ )

From conda-forge

evalhyd-r is also available on conda-forge, so that it can be installed with any conda-like package manager:

Install using mamba and the conda-forge channel
$ mamba install -c conda-forge r-evalhyd

Tip

RStudio users can install evalhyd-r, R, and RStudio in the same environment, and then use this RStudio directly:

Create an environment and install the required libraries
$ mamba create -n my-r-env -c conda-forge r rstudio r-evalhyd
Activate the environment
$ mamba activate my-r-env
Fire up RStudio
$ rstudio

Warning

This method will not work for Windows users.

From source

To build evalhyd-r from source, use the following shell commands:

Clone GitLab repository
$ git clone --recursive "https://gitlab.irstea.fr/HYCAR-Hydro/evalhyd/evalhyd-r.git"
Install from cloned source
$ R CMD INSTALL evalhyd-r

Requirements

The following libraries are required to install evalhyd-r:

Rtools
Rcpp
git