Skip to content

Error from running my first Stan model after installing stan (cmdstanr) #1102

@Christy-cyber-cyber

Description

@Christy-cyber-cyber

is:issue state:open Hi, Please I am trying get Stan to work on my desktop using “install.packages("cmdstanr", repos = c(https://mc-stan.org/r-packages/, getOption("repos"))) library(cmdstanr) check_cmdstan_toolchain() # checks compiler/toolchain cmdstanr::check_cmdstan_toolchain() cmdstanr::check_cmdstan_toolchain(fix = TRUE) cmdstanr::install_cmdstan() library(cmdstanr) ##Test mod <- cmdstan_model(write_stan_file(" data { real y_mean; } parameters { real y; } model { y ~ normal(y_mean, 1); } ")) fit <- mod$sample(data = list(y_mean = 0)) fit$summary() ” Once I am done installing, I get “The C++ tool chain required for CmdStan is setup properly!” Upon running a model, I get this very weird error message below: “INFO: Could not find files for the given pattern(s).C:/Users/xxxx /.cmdstan/cmdstan-2.36.0/stan/lib/stan_math/lib/tbb_2020.3/build/Makefile.tbb:28: CONFIG: cfg=release arch=CScript Error: Execution of the Windows Script Host failed. (This program is blocked by group policy. For more information, contact your system administrator. ) compiler=gcc target=windows runtime=CScript Error: Execution of the Windows Script Host failed. (This program is blocked by group policy. For more information, contact your system administrator. ) ” I tried reaching out to IT help desk thinking that it might be blocked by them since they set up the system. However, IT has not be able to provide a solution. Please could anyone tell me what I can do to get Stan (cmdstanr) to work on my desktop. I need to use my desktop.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions