cdriveraus/ctsem

Infinite Error Printing - sh: findstr: command not found

Opened this issue · 4 comments

I am running ctStanFit to receive a Bayesian estimation via Stan’s NUTS sampler. An error message is infinite loop printing while doing so. This doesn’t seem to be interfering with the underlying computation as the function appears to run to completion (albeit probably slower). The error is
sh: findstr: command not found

From a quick search of the codebase, there doesn't appear to be many instances of the findstr function. Just here and here.

As brought up by Jonah here, the below code does NOT produce the same error pattern

library(rstan)
code <- "
parameters {
  real x; 
} 
model {
  x ~ normal(0, 1);
} 
"
fit <- stan(model_code = code)

Any help is appreciated. Thanks in advance!

Mac OS. This is the full function call

ctStanFit( datalong      = cswim1,
                 ctstanmodel   = m1,
                 iter          = 2
                 optimize = FALSE,
                 intoverstates = TRUE,
                 algorithm = "NUTS",
                 nopriors = FALSE,
                 chains        = 4,
                 cores         = 4,
                 fit = TRUE,
                 plot=TRUE
              ) 

Will do. Thanks for the help!