Nothing
findOpenBUGS <- function(){
dir <- Sys.getenv("OpenBUGS_PATH")
if(nchar(dir))
return(dir)
dir <- getOption("R2OpenBUGS.pgm")
if(!is.null(dir))
return(dir)
if(.Platform$OS.type != "windows")
return(Sys.which('OpenBUGS'))
deps <- utils::packageDescription("R2OpenBUGS", fields="SystemRequirements")
version.req <- gsub(".*OpenBUGS ?\\(>= ?(.+)\\).*", "\\1", deps)
ob.reg <- try(utils::readRegistry("Software\\OpenBUGS", "HLM", view = "32-bit"), silent = TRUE)
if (inherits(ob.reg, "try-error"))
return(NA)
rnames <- names(ob.reg)
ver <- gsub("OpenBUGS ", "", rnames)
version.inst <- gsub("(.+)e$","\\1", ver)
if(length(version.inst > 1)){
id <- which(apply(outer(version.inst, version.inst, Vectorize(compareVersion, c("a", "b"))), 1, function(x) all(x >= 0)))
version.inst <- version.inst[id]
rnames <- rnames[id]
}
if (compareVersion(max(version.inst), version.req) < 0)
warning("Found OpenBUGS version ", version.inst, ".\n Requires ", version.req, " or greater.")
utils::readRegistry(paste("Software", "OpenBUGS", rnames, sep="\\"), "HLM", view = "32-bit")[["InstallPath"]]
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.