/vegan

R package for community ecologists: popular ordination methods, ecological null models & diversity analysis

Primary LanguageRGNU General Public License v2.0GPL-2.0

vegan: an R package for community ecologists

Ordination methods, diversity analysis and other functions for community and vegetation ecologists.

R build status CRAN_Status_Badge

Website for the development version of the vegan package.

Installation

To install the development version of vegan you can use the usual git and R CMD build -> R CMD INSTALL dance on the cloned repo (or downloaded sources). You'll need to be able to install packages from source for that to work; if you don't have the relevant developer tools, you won't be able to install vegan this way.

Using remotes

If you do have the developer tools installed but don't want the hassle of keeping a local source code tree up-to-date, use the remotes package:

install.packages("remotes")
remotes::install_github("vegandevs/vegan")

Installing binaries from R Universe

If you just want to install a binary version of the packages, just as you would from CRAN, you can install from our R Universe repository. Run the following in your R session:

# Enable repository from vegandevs
options(repos = c(
  vegandevs = 'https://vegandevs.r-universe.dev',
  CRAN = 'https://cloud.r-project.org'))
# Download and install vegan in R
install.packages('vegan')

To make this permanent, you'll need to include the options() part of that in your person R settings file, typically a .Rprofile profile in your home drive. See ?Startup.