In Cmdstan the metric argument determines the type of metric and then the metric_file argument provides the path.
Currently in cmdstanr metric can take a file path, but it doesn't then break the arguments out correctly to Cmdstan (it just sets cmdstan metric to a path and that gives an error).
I think we either break this out into the two arguments cmdstan uses (metric and metric_file) or something that makes sense from R (metric and metric_value), where metric_value is a vector/matrix that cmdstanr then writes to a file.
I'm gonna try to do the metric, metric_file thing.
In Cmdstan the metric argument determines the type of metric and then the metric_file argument provides the path.
Currently in cmdstanr metric can take a file path, but it doesn't then break the arguments out correctly to Cmdstan (it just sets cmdstan metric to a path and that gives an error).
I think we either break this out into the two arguments cmdstan uses (metric and metric_file) or something that makes sense from R (metric and metric_value), where metric_value is a vector/matrix that cmdstanr then writes to a file.
I'm gonna try to do the metric, metric_file thing.