Hoffman2:Software Tools:Rstan: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:


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



Latest revision as of 22:43, 17 June 2022

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)