R/compile_all_models.R

Defines functions compile_all_models_in_pkg_BayesianFROC

Documented in compile_all_models_in_pkg_BayesianFROC

#' @title Compile all stanfiles in pkg BayesianFROC
#'
#' @return none
#' @export
#'
#' @examples
#' \dontrun{
#' # compile_all_models_in_pkg_BayesianFROC()
#' }
#'
compile_all_models_in_pkg_BayesianFROC  <- function() {



    stanfile <- dir( system.file("extdata","", package="BayesianFROC"))

    NNN <- length(stanfile)

    for (id in 2:NNN) {

      scr <- system.file("extdata",stanfile[id] , package="BayesianFROC")
      rstan::stan_model(scr)
      print(paste("Th ", id, "-th stan-file is compiled.",sep = ""))

    }



}

Try the BayesianFROC package in your browser

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

BayesianFROC documentation built on Jan. 23, 2022, 9:06 a.m.