.dependencies_r_pkg.R

# R dependencies specific to the R package
lib <- ".library"
installed <- installed.packages(lib = lib)
pkg <- c(
  "remotes",
  "numDeriv"
)
for (i in seq_along(pkg)) {
  if (!(pkg[i] %in% installed)) {
    install.packages(
      pkg[i],
      lib = lib
    )
  }
}
pkg <- c(
  "jeksterslab/linearAlgebra"
)
for (i in seq_along(pkg)) {
  if (!(pkg[i] %in% installed)) {
    remotes::install_github(
      pkg[i],
      lib = lib
    )
  }
}
jeksterslab/multiNorm documentation built on Dec. 20, 2021, 10:11 p.m.