tools/install_packages.R

#!/usr/bin/env Rscript

packages = commandArgs(trailingOnly=TRUE)

if (.Platform$OS.type=="windows")
    options(pkgType = "win.binary") # Prefer windows binary if available (even if not latest version)

for (lib in packages) {

    install.packages(lib, repos='https://cloud.r-project.org');

    if ( ! library(lib, character.only=TRUE, logical.return=TRUE) ) {
        cat(paste("\n#########################\nCannot install", lib, "\n#########################\n\n"))
        quit(status=1, save='no')
    }
}

Try the rlibkriging package in your browser

Any scripts or data that you put into this service are public.

rlibkriging documentation built on Sept. 11, 2024, 5:54 p.m.