Skip to content

Suppress the remaining messages in cmdstan_model() if quiet is TRUE? #429

Closed
@wlandau

Description

@wlandau

I think it would be convenient if "Compiling Stan program..." and "Model executable is up to date!" were suppressed when quiet is TRUE.

library(cmdstanr)
#> This is cmdstanr version 0.2.2
#> - Online documentation and vignettes at mc-stan.org/cmdstanr
#> - CmdStan path set to: /Users/<CENSORED>/.cmdstanr/cmdstan-2.25.0
#> - Use set_cmdstan_path() to change the path
stan_program <- "
data {
  int<lower=0> N;
  int<lower=0,upper=1> y[N];
}
parameters {
  real<lower=0,upper=1> theta;
}
model {
  y ~ bernoulli(theta);
}
"
file <- write_stan_file(stan_program)

model <- cmdstan_model(file, quiet = TRUE)
#> Compiling Stan program...

model <- cmdstan_model(file, quiet = TRUE)
#> Model executable is up to date!

Created on 2021-01-06 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions