Unable to install cmdstan: Could not find files for the given pattern(s)

Hey,
this message:

is not actually that problematic. Its just an informational message that pops up on Windows (some patterns used when building only work for Linux not on Windows), but can be ignored. Will look into removing them, but this should not be problematic.

As there is actually no error there, what happens if you do

library(cmdstanr)
file <- file.path(cmdstan_path(), "examples", "bernoulli", "bernoulli.stan")
mod <- cmdstan_model(file)
data_list <- list(N = 10, y = c(0,1,0,0,0,0,0,0,0,1))
fit <- mod$sample(
  data = data_list,
  seed = 123,
  chains = 4,
  parallel_chains = 4,
  refresh = 500
)
2 Likes