https://github.com/cran/R2WinBUGS
Raw File
Tip revision: c4875dc70b4c979b949b4e8e11075f38984a4991 authored by Uwe Ligges on 05 February 2024, 07:58:28 UTC
version 2.1-22.1
Tip revision: c4875dc
read.bugs.R
read.bugs <- function(codafiles, ...){
    if(!is.R() && !requireNamespace("coda", quietly = TRUE))
        stop("package 'coda' is required to use this function")
    mcmc.list(lapply(codafiles, read.coda, 
                     index.file = file.path(dirname(codafiles[1]), "codaIndex.txt"), 
                     ...))
}
back to top