You can actually use it, but you have to set the environment variable yourself.
So
Sys.setenv(“STAN_NUM_THREADS”=X)
mod$optimize()
And it should work provided the model was compiled with stan_threads.
This will be nicer once we close that issue as @jonah says.