Skip to content

Commit 395571f

Browse files
committed
fix URLs from r cmd check NOTE
1 parent ede30d3 commit 395571f

12 files changed

+31
-36
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: bayesplot
22
Type: Package
33
Title: Plotting for Bayesian Models
44
Version: 1.8.0
5-
Date: 2021-01-06
5+
Date: 2021-01-07
66
Authors@R: c(person("Jonah", "Gabry", role = c("aut", "cre"), email = "[email protected]"),
77
person("Tristan", "Mahr", role = "aut"),
88
person("Paul-Christian", "Bürkner", role = "ctb"),
@@ -22,7 +22,7 @@ Description: Plotting functions for posterior analysis, MCMC diagnostics,
2222
particularly (but not exclusively) packages interfacing with 'Stan'.
2323
License: GPL (>= 3)
2424
LazyData: TRUE
25-
URL: https://mc-stan.org/bayesplot
25+
URL: https://mc-stan.org/bayesplot/
2626
BugReports: https://github.com/stan-dev/bayesplot/issues/
2727
SystemRequirements: pandoc (>= 1.12.3), pandoc-citeproc
2828
Depends:

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ matrices also inheriting from "array" in R 4.0.
8181
* Added `mcmc_trace_data()`, which returns the data used for plotting the trace
8282
plots and rank histograms. (Advances #97)
8383

84-
* [ColorBrewer](http://colorbrewer2.org) palettes are now available as color
84+
* [ColorBrewer](https://colorbrewer2.org/) palettes are now available as color
8585
schemes via
8686
[`color_scheme_set()`](https://mc-stan.org/bayesplot/reference/bayesplot-colors.html).
8787
For example, `color_scheme_set("brewer-Spectral")` will use the Spectral

R/bayesplot-package.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#'
4545
#' @section Resources:
4646
#' * __Online documentation and vignettes__: Visit the __bayesplot__ website at
47-
#' <https://mc-stan.org/bayesplot>
47+
#' <https://mc-stan.org/bayesplot/>
4848
#' * __Bug reports and feature requests__: If you would like to request a new
4949
#' feature or if you have noticed a bug that needs to be fixed please let us
5050
#' know at the **bayesplot** issue tracker at

R/ppc-censoring.R

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
#' predictive distribution. See the **Plot Descriptions** section, below, for
66
#' details.
77
#'
8-
#' Although some of the other plots can be used with censored data,
9-
#' `ppc_km_overlay()` is currently the only plotting function designed
8+
#' Although some of the other \pkg{bayesplot} plots can be used with censored
9+
#' data, `ppc_km_overlay()` is currently the only plotting function designed
1010
#' *specifically* for censored data. We encourage you to suggest or contribute
11-
#' additional plots at [https://github.com/stan-dev/bayesplot](github.com/stan-dev/bayesplot).
12-
#'
13-
#'
11+
#' additional plots at
12+
#' [https://github.com/stan-dev/bayesplot](github.com/stan-dev/bayesplot).
1413
#'
1514
#' @name PPC-censoring
1615
#' @family PPCs
@@ -26,10 +25,10 @@
2625
#' \describe{
2726
#' \item{`ppc_km_overlay()`}{
2827
#' Empirical CCDF estimates of each dataset (row) in `yrep` are overlaid,
29-
#' with the Kaplan-Meier estimate (Kaplan and Meier, 1958) for `y` itself
30-
#' on top (and in a darker shade). This is a PPC suitable for
31-
#' right-censored `y`. Note that the replicated data from `yrep` is assumed
32-
#' to be uncensored.
28+
#' with the Kaplan-Meier estimate (Kaplan and Meier, 1958) for `y` itself on
29+
#' top (and in a darker shade). This is a PPC suitable for right-censored
30+
#' `y`. Note that the replicated data from `yrep` is assumed to be
31+
#' uncensored.
3332
#' }
3433
#' }
3534
#'
@@ -74,11 +73,9 @@ ppc_km_overlay <-
7473
abort("Package 'ggfortify' required.")
7574
}
7675

77-
# Checks for 'status_y':
7876
stopifnot(is.numeric(status_y))
7977
stopifnot(all(status_y %in% c(0, 1)))
8078

81-
# Create basic PPC dataset:
8279
data <- ppc_data(y, yrep, group = status_y)
8380

8481
# Modify the status indicator:
@@ -93,23 +90,20 @@ ppc_km_overlay <-
9390
as.numeric(as.character(.data$group)),
9491
1))
9592

96-
# Create 'survfit' object and 'fortify' it
9793
sf <- survival::survfit(
9894
survival::Surv(value, group) ~ rep_label,
9995
data = data
10096
)
10197
fsf <- fortify(sf)
10298

103-
# Add variables specifying color, size, and alpha:
10499
fsf$is_y_color <- as.factor(sub("\\[rep\\] \\(.*$", "rep", sub("^italic\\(y\\)", "y", fsf$strata)))
105100
fsf$is_y_size <- ifelse(fsf$is_y_color == "yrep", size, 1)
106101
fsf$is_y_alpha <- ifelse(fsf$is_y_color == "yrep", alpha, 1)
107102

108103
# Ensure that the observed data gets plotted last by reordering the
109-
# levels of the factor "strata":
104+
# levels of the factor "strata"
110105
fsf$strata <- factor(fsf$strata, levels = rev(levels(fsf$strata)))
111106

112-
# Plot:
113107
ggplot(data = fsf,
114108
mapping = aes_(x = ~ time,
115109
y = ~ surv,

inst/CITATION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ bibentry(bibtype = "Misc",
88
),
99
year = year,
1010
note = note,
11-
url = c("https://mc-stan.org/bayesplot"),
11+
url = c("https://mc-stan.org/bayesplot/"),
1212
header = "To cite the bayesplot R package:"
1313
)
1414

man-roxygen/reference-loo.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#' Bayesian model evaluation using leave-one-out cross-validation and WAIC.
33
#' *Statistics and Computing*. 27(5), 1413--1432.
44
#' doi:10.1007/s11222-016-9696-4. arXiv preprint:
5-
#' <https://arxiv.org/abs/1507.04544/>
5+
#' <https://arxiv.org/abs/1507.04544>

man/PPC-censoring.Rd

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

man/PPC-loo.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/bayesplot-package.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/graphical-ppcs.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ version 1.7.0. https://CRAN.R-project.org/package=brms
392392

393393
Gabry, J., and Goodrich, B. (2017). rstanarm: Bayesian Applied Regression
394394
Modeling via Stan. R package version 2.15.3.
395-
https://mc-stan.org/rstanarm, https://CRAN.R-project.org/package=rstanarm
395+
https://mc-stan.org/rstanarm/, https://CRAN.R-project.org/package=rstanarm
396396

397397
Gabry, J. , Simpson, D. , Vehtari, A. , Betancourt, M. and Gelman, A. (2019),
398398
Visualization in Bayesian workflow. _J. R. Stat. Soc. A_, 182: 389-402.

0 commit comments

Comments
 (0)