From 8809a64fedfd5320ac807fec80e53a02e0151b14 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Fri, 15 Dec 2023 17:05:18 +0100 Subject: [PATCH] Install cmdstan in vignette. --- R-package/vignettes/getting_started.Rmd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/R-package/vignettes/getting_started.Rmd b/R-package/vignettes/getting_started.Rmd index c8c4481..a94f26b 100644 --- a/R-package/vignettes/getting_started.Rmd +++ b/R-package/vignettes/getting_started.Rmd @@ -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(),