R/cfa.R

Defines functions cfa

Documented in cfa

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

  cfa_pack <- c("fastDummies", "semTools", "semPlot")

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

  appDir <- system.file("shiny-apps", "CFA", 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.