J. Aaron Hogan - 2023-12-18

Hi runjags community,

I am having an issue with runjags recognizing where jags is installed. I am using the USDA Ceres cluster (Linux system).

JAGS 4.3.2 is installed in the 'project/carib_fia/james.hogan/JAGS' folder.

I can dyn.load the libjags.so.4 from there and get R2jags to link to JAGS, but for some reason, I cannot get runjags to find where JAGS is (see picture attached; code is below):

sessionInfo()

## dynamic load JAGS
dyn.load('/project/carib_fia/james.hogan/JAGS/4.3.2/lib/libjags.so.4')

## packages --- R2jags says it is linked to JAGS 4.3.2
library(R2jags)
library(runjags)   # this works to get R to recognize JAGS  (but wont work if I runjags in parallel)



## set path in runjags.options
runjags.options(jagspath = '/project/carib_fia/james.hogan/JAGS/4.3.2/lib/')

testjags()

### findjags
findjags(look_in = '/project/carib_fia/james.hogan/JAGS/4.3.2/lib/')

##^ these lines of code do not work to get R to recognize JAGS.

Any help you can provide is greatly appreciated
Thanks in advance, Aaron