Skip to content

Output directory errors with trailing slash on Windows #281

Closed
@bbbales2

Description

@bbbales2

Someone told me that they were having troubles specifying the output_dir argument with a trailing slash. I checked in Linux and it works so maybe this is a Windows thing?

Close if it's not possible to reproduce.

Here's a model:

parameters {
  real a;
}

model {
  a ~ normal(0, 1);
}

Here's R to get an error:

library(cmdstanr)
model = cmdstan_model("test.stan")
dir.create("whatever")
fit = model$sample(output_dir = "./whatever/")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions