Brms cannot save the model data

Short summary of the problem
brms returns an error when trying to save the model after fitting.

> library(brms)
> b3.1 <-
+   brm(data = list(w = 6), 
+       family = binomial(link = "identity"),
+       w | trials(9) ~ 0 + Intercept,
+       # this is a flat prior
+       prior(beta(1, 1), class = b, lb = 0, ub = 1),
+       seed = 3,
+       file = "fits/b03.01")
Error: The directory 'fits' does not exist. Please choose an existing directory where the model can be saved after fitting.

I’m working on the alternative coding provided by A Solomon Kurz for the rethinking package, Statistical rethinking with brms, ggplot2, and the tidyverse (bookdown.org).

Please also provide the following information in addition to your question:

  • Windows 10 Pro, r 4.2.1
  • brms Version: 2.17.0

Thx for your help!

I managed to solve this despite my limited knowledge… I created a directory, i.e. a folder named “fits” in R’s working directory.

Best