JAGS: Just Another Gibbs Sampler rjags
Brought to you by:
martyn_plummer
| File | Date | Author | Commit |
|---|---|---|---|
| R | 2016-03-31 |
|
[59fac9] Vectorise monitor type |
| data | 2011-06-11 |
|
[7f5774] Update for new adaptation rules |
| man | 2016-03-31 |
|
[59fac9] Vectorise monitor type |
| src | 2015-10-19 |
|
[3472b1] Allow configuration with pkg-config |
| .hgtags | 2011-01-05 |
|
[4054d4] update tags |
| DESCRIPTION | 2015-11-27 |
|
[da27cd] Fixes for private installations |
| NAMESPACE | 2015-10-22 |
|
[518a5e] More NAMESPACE fixes on Windows |
| README | 2015-09-08 |
|
[4e6ce0] Fixes for R CMD check |
| cleanup | 2008-03-18 |
|
[7f6cf1] Drop pkg-config dependency. Script now guesses ... |
| configure | 2015-11-29 |
|
[7ffa31] Fixes for private installations of JAGS |
| configure.ac | 2015-11-29 |
|
[7ffa31] Fixes for private installations of JAGS |
| configure.win | 2011-06-11 |
|
[7f5774] Update for new adaptation rules |
The rjags package is an interface to the JAGS library. In order to
build a binary package, or install from source, you must have a matching
installation of the JAGS library.
Windows
-------
At compile time, there is no way for Windows to guess where the JAGS
library is installed, so you must supply the location yourself using
the make variable JAGS_ROOT, defining it in the file HOME/.R/Makevars.win,
e.g.
JAGS_ROOT=c:/Program Files/JAGS/JAGS-3.4.0
where HOME is the Folder that is the default working directory when
you launch R.
Unix
----
The configure script will try to guess the location of the JAGS
library installation. It will look in /<prefix>/<lib>, where
- <prefix> is the determined from the location of the jags
script that launches the command line interface.
For example, if this is "/usr/local/bin/jags", then prefix will
be "/usr/local"
- <lib> is derived from the value of "LIBnn", returned by
"R CMD config LIBnn".
This is particularly important on 64-bit unix, where R is
installed by default in /usr/local/lib64 and LIBnn is "lib64"
The configure script will also look for JAGS headers in
/<prefix>/include/JAGS
If the configure script fails to find the JAGS headers or library,
you can set the environment variables JAGS_INCLUDE and JAGS_LIB
to point to the correct directory.
Alternatively, you can use the configure options
--with-jags-include=/path/to/jags/headers
(default /usr/local/include/JAGS)
--with-jags-lib=/path/to/jags/library
(default /usr/local/[lib|lib64])
These options are onto the rjags configure script with:
"R CMD INSTALL --configure-args='--with-jags...'
Exceptionally, you may need to set the location of the JAGS modules.
But this will only be necessary if you reset moddir when installing
JAGS. This can be done by setting the environment variabel JAGS_MODULES
or by using the configure option
--with-jags-modules=/path/to/jags/modules
(default /usr/local/[lib|lib64]/JAGS/modules-w.y.z)
where w.y.z is the version number of JAGS