Skip to content

Getting Started with CmdStan

Daniel Lee edited this page Mar 5, 2014 · 15 revisions

These are the instructions for getting started with CmdStan. Stan is a submodule within CmdStan and is located in the stan/ folder.

Set up CmdStan

  1. Clone CmdStan.

    > git clone https://github.com/stan-dev/cmdstan.git
    
  2. Initialize and Update Stan (within CmdStan).

    From the cmdstan home directory

    > make stan-update
    

Developers: Update Stan submodule

From the cmdstan home directory:

> make stan-update

Developers: Use a different Stan branch

If the branch is feature/foo-bar, from the cmdstan home directory:

> make stan-update/feature/foo-bar

Build a Stan Model

The make target help will display options. This is the same as the old Stan.

  1. Build all tools (optional)

    > make build

  2. Build a model foo/bar.stan

    linux / mac: > make foo/bar

    windows: > make foo/bar.exe

Clone this wiki locally