R/pca.R

Defines functions pca

Documented in pca

#' pca
#' pca()
#' @export
pca <- function() {

  pca_pack <- c("FactoMineR", "FactoInvestigate", "factoextra", "rrcov", "methods", "parallel", "graphics", "imputeMissings", "onewaytests")

  for (i in 1:length(pca_pack)){
    requireNamespace(pca_pack[i], quietly = TRUE)
  }

  appDir <- system.file("shiny-apps", "PCA", package = "Statsomat")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing Statsomat.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}

Try the Statsomat package in your browser

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

Statsomat documentation built on Nov. 17, 2021, 5:17 p.m.