Learn R Programming

climatehealth (version 1.0.0)

install_INLA: Install the INLA Package from Its Official Repository

Description

This function installs the INLA package from its official repository at https://inla.r-inla-download.org/R/stable/. On Windows, it checks whether Rtools is available and installs the official binary package directly.

Usage

install_INLA(os = .Platform$OS.type)

Value

Invisibly returns NULL. The function is called for its side effect.

Arguments

os

The current operating system. Defaults to .Platform$OS.type.

Details

On Windows systems, the function verifies that Rtools is installed using pkgbuild::has_build_tools(). If Rtools is missing, it displays a warning and aborts the installation. The function then installs the matching Windows binary package from the official INLA repository.

On non-Windows systems, the package is installed normally from the repository.

Examples

Run this code
if (FALSE) {
install_INLA()
}

Run the code above in your browser using DataLab