Hoffman2:Software Tools:Rstan

From Center for Cognitive Neuroscience
Revision as of 22:43, 17 June 2022 by Hwang (talk | contribs) (Created page with " To use Rstan, we need to load R version/4.1.2 module load R/4.1.2 module load gcc/5.3.0 export R_LIBS='/u/project/CCN/apps/R_libs/rh7/4.1.2' Enter R prompt and test Rstan R...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To use Rstan, we need to load R version/4.1.2

module load R/4.1.2 module load gcc/5.3.0 export R_LIBS='/u/project/CCN/apps/R_libs/rh7/4.1.2'

Enter R prompt and test Rstan R >require(rstan) > example(stan_model, package = "rstan", run.dontrun = TRUE)