Profile() not working in cmdstan

Hi,

I cannot get the profiles() function to work, from Profiling Stan programs with CmdStanR • cmdstanr

I have tried both the latest version of cmdstan (v 2.26.1) as well as the first version to include the profile functionality (v 2.26.0-rc1). The model compiles fine, and runs, but when I attempt to use the $profiles function, I get the error message “Error: attempt to apply non-function”. Is there something I am missing?

Hi,

this is available on the Github version (development version) of cmdstanr.

You can install it with

remotes::install_github("stan-dev/cmdstanr")