Skip to content

Commit d06bfde

Browse files
committed
make sure all vignettes generated locally not on CRAN
From Brian Ripley: This has added Suggests: rstan but does not use it conditionally, so on an M1 Mac Packages suggested but not available for checking: 'brms', 'rstan', 'rstanarm', 'rstantools' ... --- re-building ‘large-data.Rmd’ using rmarkdown Quitting from lines 45-48 (large-data.Rmd) Error: processing vignette 'large-data.Rmd' failed with diagnostics: there is no package called 'rstan' This is because rstan requires package V8 hence v8, probably the hardest of all external software to install and no one has yet succeeded in porting to arm64.
1 parent 549f826 commit d06bfde

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: loo
22
Type: Package
33
Title: Efficient Leave-One-Out Cross-Validation and WAIC for Bayesian Models
4-
Version: 2.4.0
5-
Date: 2020-12-01
4+
Version: 2.4.1
5+
Date: 2020-12-07
66
Authors@R: c(person("Aki", "Vehtari", email = "[email protected]", role = c("aut")),
77
person("Jonah", "Gabry", email = "[email protected]", role = c("cre", "aut")),
88
person("Mans", "Magnusson", role = c("aut")),

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# loo 2.4.1
2+
3+
Fixes issue reported by CRAN where one of the vignettes errored on an M1 Mac
4+
due to RStan's dependency on V8.
5+
16
# loo 2.4.0
27

38
### Bug fixes

vignettes/loo2-large-data.Rmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ params:
1313
%\VignetteIndexEntry{Using Leave-one-out cross-validation for large data}
1414
-->
1515

16+
```{r settings, child="children/SETTINGS-knitr.txt"}
17+
```
18+
1619
```{r, child="children/SEE-ONLINE.txt", eval = if (isTRUE(exists("params"))) !params$EVAL else TRUE}
1720
```
1821

vignettes/loo2-with-rstan.Rmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ params:
1313
%\VignetteIndexEntry{Writing Stan programs for use with the loo package}
1414
-->
1515

16+
```{r settings, child="children/SETTINGS-knitr.txt"}
17+
```
18+
1619
```{r, child="children/SEE-ONLINE.txt", eval = if (isTRUE(exists("params"))) !params$EVAL else TRUE}
1720
```
1821

0 commit comments

Comments
 (0)