.github/install_deps.R

# R script
github_deps <- c(
    "tmelliott/surveyspec@develop"
)

OS <- Sys.getenv("OS_TYPE")
if (OS == "Windows" && !requireNamespace("RCurl", quietly = TRUE)) {
    install.packages("RCurl", repos = "https://cran.r-project.org")
}

options(
    repos = c(
        RSPM = Sys.getenv("RSPM"),
        CRAN = "https://cloud.r-project.org"
    ),
    install.packages.compile.from.source =
        ifelse(OS == "macOS", "always", "never")
)


if (!requireNamespace("remotes", quietly = TRUE)) {
    install.packages("remotes")
}

install.packages("knitr")

remotes::install_github(github_deps,
    INSTALL_opts = c("--no-multiarch")
)
remotes::install_deps(
    dependencies = TRUE,
    INSTALL_opts = c("--no-multiarch")
)
remotes::install_cran("rcmdcheck",
    INSTALL_opts = c("--no-multiarch")
)
iNZightVIT/iNZightTools documentation built on June 13, 2025, 12:35 p.m.