mm_check_mcmc_files: Check the syntax of all Bayesian model files in the package

View source: R/mm_check_mcmc_file.R

mm_check_mcmc_filesR Documentation

Check the syntax of all Bayesian model files in the package

Description

Check the syntax of all Bayesian model files in the package

Usage

mm_check_mcmc_files(grep_pattern)

Arguments

grep_pattern

string on which to filter the names if only some should be checked. fixed=FALSE.

Examples

## Not run: 
# takes a long time, so run only when needed
checks <- streamMetabolizer:::mm_check_mcmc_files()
saveRDS(checks, file='temp/bayes_model_checks.Rds')
checks <- streamMetabolizer:::mm_check_mcmc_files("*ko\\.stan")
checks <- streamMetabolizer:::mm_check_mcmc_files("b_np_.*_ko\\.stan")
cat(checks[[7]])

## End(Not run)

USGS-R/streamMetabolizer documentation built on Aug. 15, 2023, 7:50 a.m.