Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

testjags

Analyse the System to Check That JAGS Is Installed


Description

Test the users system to determine the operating system, version of R installed, and version of JAGS installed. Some information is collected from other functions such as .platform and Sys.info. Used by the run.jags function.

Usage

testjags(jags = runjags.getOption("jagspath"), silent = FALSE)

Arguments

jags

the system call or path for activating JAGS. Default calls findjags() to attempt to locate JAGS on your system automatically. In unix the system call should always be 'jags', in Windows a path to the JAGS executable or the enclosing /bin or /JAGS folder is required.

silent

should on-screen feedback be suppressed? Default FALSE.

Value

A named list of values containing information about the JAGS installs found on the user's system (returned invisibly).

See Also

Examples

# Run the function to determine if JAGS is installed:
testjags()
testjags('some/jags/path')

runjags

Interface Utilities, Model Templates, Parallel Computing Methods and Additional Distributions for MCMC Models in JAGS

v2.2.0-2
GPL-2
Authors
Matthew Denwood [aut, cre], Martyn Plummer [cph] (Copyright holder of the code in src/distributions/DPar1.*, configure.ac, R/rjags_functions.R, and original copyright holder of some modified code where indicated)
Initial release
2021-03-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.