See if a result folder is obtained by JAGS
is_jags_folder(DIR_NPLCM)
DIR_NPLCM
: directory to the folder with results. "mcmc_options.txt" must be in the folder.TRUE for from JAGS; FALSE otherwise.
is_jags_folder(tempdir()) # just an illustration.
Useful links