R/bayesx_prgfile.R

Defines functions bayesx_prgfile

Documented in bayesx_prgfile

bayesx_prgfile <- function(x, model = 1L)
{
  x <- get.model(x, model)
  bayesx.prg <- NULL
  if(inherits(x, "bayesx")) {
    bayesx.prg <- x[[model]]$bayesx.prg$prg
      if(!is.null(bayesx.prg))
        cat(bayesx.prg)
  }
  if(is.null(bayesx.prg))
    warning("program file is not available!")

  return(invisible(bayesx.prg))
}

Try the R2BayesX package in your browser

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

R2BayesX documentation built on Oct. 20, 2023, 3:01 p.m.