Error with read_stan_csv


#1

Hi,
I’m trying to read a fit object I produced with cmdStan using the fixed parameters algorithm and I’m getting the following error:

Error in if (adapt_term_lineno == len) adaptation_info <- “” else { :
missing value where TRUE/FALSE needed

Is this an issue or is read_stan_csv not meant to work on files produced with the fixed parameters algorithm? See the attached csv file I’m trying to read.
fTwoCpt1.csv (16.6 KB)


#2

I got it working on my local machine, so this may not be an RStan issue. I’ll try and figure out why it works on one platform and not the other.


#3

It works with rstan 2.15.x


#4

I’m using stan 2.14.x to keep it coupled with torsten. I haven’t updated torsten yet to 2.15.


#5

Well, patch your rstan locally with the file from 2.15.x

https://raw.githubusercontent.com/stan-dev/rstan/develop/rstan/rstan/R/stan_csv.R


#6

Nice, thanks for the code!