Skip to content

Commit 188b309

Browse files
committed
Fix themes
1 parent 3eaef78 commit 188b309

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

R/backend-function.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#' A backend that just calls a function.
22
#'
33
#' If the function returns a `draws_matrix` object, no other
4-
#' work is necessary to make it work with SBC.
4+
#' work is necessary to make it work with SBC. Useful for quick tests.
55
#'
66
#' @param func the function that will be called in [SBC_fit()]
77
#' @param generated_arg name of the argument of `func` that will receive the

examples/backend-function-example.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# See https://math.stackexchange.com/a/5085538/423833 for derivation that it
55
# is generalized gamma distribution. Here we test this is correct.
66

7+
library(ggplot2)
8+
theme_set(theme_minimal())
9+
710
N_sims <- 100
811
df <- 5
912
z <- rnorm(N_sims)

vignettes/SBC.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ In this vignette we will demonstrate how the interface is used with a simple poi
129129
setup and configure our environment.
130130

131131
```{r setup, message=FALSE,warning=FALSE, results="hide"}
132-
library(SBC);
132+
library(SBC)
133+
library(ggplot2)
133134
134135
use_cmdstanr <- getOption("SBC.vignettes_cmdstanr", TRUE) # Set to false to use rstan instead
135136
@@ -161,6 +162,7 @@ if(!dir.exists(cache_dir)) {
161162
dir.create(cache_dir)
162163
}
163164
165+
theme_set(theme_minimal())
164166
```
165167

166168
```{r enable progressr, eval = FALSE}

0 commit comments

Comments
 (0)