From 7cd5ba03a2855a194ba0342178a29f2cf0fd9f5c Mon Sep 17 00:00:00 2001 From: timjzee Date: Tue, 19 Mar 2024 18:10:26 +0100 Subject: [PATCH] Update ulam-function.R --- R/ulam-function.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/ulam-function.R b/R/ulam-function.R index 0bf5cc0..6440032 100644 --- a/R/ulam-function.R +++ b/R/ulam-function.R @@ -1440,7 +1440,7 @@ ulam <- function( flist , data , pars , pars_omit , start , chains=1 , cores=1 , if ( rstanout==TRUE ) stanfit <- rstan::read_stan_csv(cmdstanfit$output_files()) else - stanfit <- read_cmdstan_csv(cmdstanfit$output_files()) + stanfit <- as_cmdstan_fit(cmdstanfit$output_files()) } } else { if ( cmdstan==FALSE ) { @@ -1471,7 +1471,7 @@ ulam <- function( flist , data , pars , pars_omit , start , chains=1 , cores=1 , if ( rstanout==TRUE ) stanfit <- rstan::read_stan_csv(cmdstanfit$output_files()) else - stanfit <- read_cmdstan_csv(cmdstanfit$output_files()) + stanfit <- as_cmdstan_fit(cmdstanfit$output_files()) } } } else {