Repository migrated to R-Universe

Updated installation instructions

website news
repository news
Author

Pedro J. Aphalo

Published

2024-02-10

Modified

2024-02-10

I have moved the local CRAN-like repository to R-Universe. The address https://r.r4photobiology.info/ is replaced by https://aphalo.r-universe.dev/.

Installation using package ‘photobiology’ as example

Installation of the most recent stable version from CRAN:

install.packages('photobiology')

Installation of the current pre-release version from R-Universe CRAN-like repository and dependencies from CRAN:

install.packages('photobiology', 
                 repos = c('https://aphalo.r-universe.dev', 'https://cloud.r-project.org'))

Adding the repository to those used by R by default

If you are using a recent version of R, the statements below can be added to the .Rprofile file for the repository to be always checked when installing or updating packages, or run before installing or updating the packages I maintain.

repos <- getOption("repos", default = list("CRAN" = 'https://cloud.r-project.org'))
repos[["r4photobiology"]] <- "https://aphalo.r-universe.dev'"
old.repos <- options(repos = repos)

In the second case, the previous setting can be restored if needed with the statement below once the packages have been installed.

options(repos = old.repos)