Errors when using cmdstan_model()

Try adding C:\RBuildTools\3.5\mingw_64\bin to PATH and restart RStudio.

Thx!

Now it works!

3 Likes

@Siquan-Wang glad it’s working, thanks for your patience and not giving up!

Thanks @rok_cesnovar and @mitzimorris for helping sort this out.

2 Likes

hi @rok_cesnovar - is there a way to eliminate use of cut utility from makefiles? - users keep hitting this problem.
offending lines are here:

stan/lib/stan_math/make/compiler_flags:61:CXX_MAJOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f1)
stan/lib/stan_math/make/compiler_flags:62:CXX_MINOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f2)

Done: https://github.com/stan-dev/math/pull/2126

Thanks for pointing it out.

2 Likes