Skip to content

Commit

Permalink
Install cmdstan in vignette.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillahoffmann committed Dec 15, 2023
1 parent c108e13 commit 8809a64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R-package/vignettes/getting_started.Rmd
Original file line number Diff line number Diff line change
@@ -22,9 +22,13 @@ This vignette demonstrates the package by sampling from a simple Gaussian proces
cat(readLines("getting_started.stan"), sep = "\n")
```

In this vignette, we compile and later fit the model using `cmdstanr`.
In this vignette, we compile and later fit the model using `cmdstanr`. You may need to install `cmdstan` first.

```{r}
# Install cmdstan if required.
cmdstanr::install_cmdstan()
# Compile the model.
model <- cmdstanr::cmdstan_model(
stan_file="getting_started.stan",
include_paths=gptoolsStan::gptools_include_path(),

0 comments on commit 8809a64

Please sign in to comment.