You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the terminal at the stanc3 directory run eval $(opam env). Don't worry, there should be no output.
Pin the version we need by opam pin -y core_kernel v0.14.2
You can now build a stanc binary by running make. If this succeeds, you have the required software.
Next, we need to go into the stan-math directory. If you have run any expression tests prior to this you need to clean the test/expressions folder. There should only be two files in the test/expressions folder: expression_test_helpers.hpp and test_expression_testing_framework.py. If you have more, delete them.
In the main directory of stan-math cd into the make directory. You need to add a local file with the location of stanc by adding STANC3=/location/to/stanc3 in the local file.
Go back to the main stan-math directory and try running the expression test for the function
Stan Math functions that are meant to be exposed in the Stan language have 2 expressions requirements:
This is not really documented or expressed clearly for Stan Math developers I think. We need to mention this somewhere more prominently.
It should also mention that you can test expressions for a function not currently exposed in Stan by running:
The text was updated successfully, but these errors were encountered: