R for photobiology repository

A CRAN-like repository

Author

Pedro J. Aphalo

Published

2024-02-10

This repository has moved to https://aphalo.r-universe.dev.

You will be redirected to the new repository in 10 seconds.

Installation from the new repository

Installation of packages from my R-universe repository differs from installation from CRAN only in the need to add the repository to those known to R.

In the case of R packages ‘rOmniDriver’ and ‘ooacquire’ things are not as simple because they have system dependencies: the Ocean Optics/Ocean Insight OmniDriver runtime and the Java 8 JDK need to be first installed separately. For details, please read before attempting to install ‘rOmniDriver’ or ‘ooacquire’ their README files where you will find up-to-date installation instructions: for ‘rOmniDriver’ and ‘ooacquire’.

In recent versions of R the default repositories can be set through an option, set in .Rprofile, or through another script or at the R console. The following code adds this repository to those known to R. (If the "repos" option is not set, it also adds CRAN to ensure all dependencies are found and installed.)

my.repos <- getOption("repos")
if (is.null(my.repos)) {
  my.repos[["CRAN"]] <- "https://cran.rstudio.com/"
}
my.repos[["r4photobiology"]] <- "https://aphalo.r-universe.dev/"
options(repos = my.repos)

What is stored in the repository?

Binary and source versions of R packages ‘rOmniDriver’ and ‘ooacquire’ as well as pre-release versions of all other packages that I maintain, released through CRAN or not, are available in this repository. The R-Universe tracks the most recent Git commit in the default branch and updates sources and binaries. Sources for all my R packages are also available in Git repositories at GitHub. From GitHub it is possible to install the packages in their state at any commit of eny branch, but this is almost never necessary.