Infinite Error Printing - sh: findstr: command not found
Opened this issue · 4 comments
Deleted user commented
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!
cdriveraus commented
Are you fitting with the argument plot=TRUE or plot = some positive
integer? What operating system?
…On Wed, 30 Aug 2023, 03:15 phvv, ***@***.***> wrote:
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
<https://github.com/cdriveraus/ctsem/blob/9559413b4510c3045d164e8558a523be2d72074f/R/stanWplot.R#L62>
and here
<https://github.com/cdriveraus/ctsem/blob/9559413b4510c3045d164e8558a523be2d72074f/R/stanWplot.R#L42>
.
As brought up by Jonah here
<https://discourse.mc-stan.org/t/ctstanfit-printing-infinite-error/32569>,
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!
—
Reply to this email directly, view it on GitHub
<#52>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7LCBM3LHREHZ6Z6C4PBC3XX2HZNANCNFSM6AAAAAA4DYA4IM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Deleted user commented
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
)
cdriveraus commented
Ok. I probably have to find an alternative to that function if it's not
generally available on macOS. To avoid the error just disable the plot
output when using sampling - with optimisation it will still work fine.
…On Wed, 30 Aug 2023, 03:24 phvv, ***@***.***> wrote:
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
)
—
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7LCBPSYZNKHQSG4N2RMD3XX2I3DANCNFSM6AAAAAA4DYA4IM>
.
You are receiving this because you commented.Message ID:
***@***.***>
Deleted user commented
Will do. Thanks for the help!