Skip to content

Commit ff85ced

Browse files
committed
fix backslash escaping errors in the examples
1 parent 3ec7a89 commit ff85ced

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Suggests:
4949
shinystan (>= 2.3.0),
5050
testthat (>= 2.0.0),
5151
vdiffr
52-
RoxygenNote: 7.0.1
52+
RoxygenNote: 7.0.2
5353
VignetteBuilder: knitr
5454
Encoding: UTF-8
5555
Roxygen: list(markdown = TRUE)

R/mcmc-intervals.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
#' color_scheme_set("brightblue")
6161
#' mcmc_intervals(x)
6262
#' mcmc_intervals(x, pars = c("beta[1]", "beta[2]"))
63-
#' mcmc_areas(x, regex_pars = "beta\\\[[1-3]\\\]", prob = 0.8) +
63+
#' mcmc_areas(x, regex_pars = "beta\\[[1-3]\\]", prob = 0.8) +
6464
#' ggplot2::labs(
6565
#' title = "Posterior distributions",
6666
#' subtitle = "with medians and 80% intervals"

R/mcmc-scatterplots.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,17 @@ mcmc_hex <- function(x,
220220
#'
221221
#' # pairs plots
222222
#' # default of condition=NULL implies splitting chains between upper and lower panels
223-
#' mcmc_pairs(x, pars = "alpha", regex_pars = "beta\\\[[1,4]\\\]",
223+
#' mcmc_pairs(x, pars = "alpha", regex_pars = "beta\\[[1,4]\\]",
224224
#' off_diag_args = list(size = 1, alpha = 0.5))
225225
#'
226226
#' # change to density plots instead of histograms and hex plots instead of
227227
#' # scatterplots
228-
#' mcmc_pairs(x, pars = "alpha", regex_pars = "beta\\\[[1,4]\\\]",
228+
#' mcmc_pairs(x, pars = "alpha", regex_pars = "beta\\[[1,4]\\]",
229229
#' diag_fun = "dens", off_diag_fun = "hex")
230230
#'
231231
#' # plot chain 1 above diagonal and chains 2, 3, and 4 below
232232
#' color_scheme_set("brightblue")
233-
#' mcmc_pairs(x, pars = "alpha", regex_pars = "beta\\\[[1,4]\\\]",
233+
#' mcmc_pairs(x, pars = "alpha", regex_pars = "beta\\[[1,4]\\]",
234234
#' diag_fun = "dens", off_diag_fun = "hex",
235235
#' condition = pairs_condition(chains = list(1, 2:4)))
236236
#' }

man/MCMC-scatterplots.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)