diff --git a/DESCRIPTION b/DESCRIPTION index 1da775482..121871b2c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: bayestestR Title: Understand and Describe Bayesian Models and Posterior Distributions -Version: 0.14.0.1 +Version: 0.14.0.2 Authors@R: c(person(given = "Dominique", family = "Makowski", diff --git a/NEWS.md b/NEWS.md index 87761cc84..7ab5b59f9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,9 @@ # bayestestR (development version) +## Bug fixes + +* Fixed warning in CRAN check results. + # bayestestR 0.14.0 ## Breaking Changes diff --git a/R/estimate_density.R b/R/estimate_density.R index 5b105fb22..2074c4efc 100644 --- a/R/estimate_density.R +++ b/R/estimate_density.R @@ -20,7 +20,7 @@ #' means that the x axis will be extended by `1/10` of the range of the data. #' @param select Character vector of column names. If `NULL` (the default), all #' numeric variables will be selected. Other arguments from -#' [`datawizard::extract_column_names()`] (such as `exclude`) can also be used. +#' `datawizard::extract_column_names()` (such as `exclude`) can also be used. #' @param by Optional character vector. If not `NULL` and input is a data frame, #' density estimation is performed for each group (subsets) indicated by `by`. #' See examples. diff --git a/man/estimate_density.Rd b/man/estimate_density.Rd index ea5ee5c61..6132abd14 100644 --- a/man/estimate_density.Rd +++ b/man/estimate_density.Rd @@ -48,7 +48,7 @@ This feature is experimental, use with caution.} \item{select}{Character vector of column names. If \code{NULL} (the default), all numeric variables will be selected. Other arguments from -\code{\link[datawizard:extract_column_names]{datawizard::extract_column_names()}} (such as \code{exclude}) can also be used.} +\code{datawizard::extract_column_names()} (such as \code{exclude}) can also be used.} \item{by}{Optional character vector. If not \code{NULL} and input is a data frame, density estimation is performed for each group (subsets) indicated by \code{by}. diff --git a/vignettes/probability_of_direction.Rmd b/vignettes/probability_of_direction.Rmd index 77e68c640..da9c387fe 100644 --- a/vignettes/probability_of_direction.Rmd +++ b/vignettes/probability_of_direction.Rmd @@ -1,6 +1,6 @@ --- title: "Probability of Direction (pd)" -output: +output: rmarkdown::html_vignette: toc: true fig_width: 10.08 @@ -10,7 +10,7 @@ vignette: > \usepackage[utf8]{inputenc} %\VignetteIndexEntry{Probability of Direction (pd)} %\VignetteEngine{knitr::rmarkdown} -editor_options: +editor_options: chunk_output_type: console bibliography: bibliography.bib csl: apa.csl @@ -98,10 +98,10 @@ dat <- transform( ) ggplot(dat, aes(x = p_direction, y = p_value, color = effect_existence)) + geom_point2(alpha = 0.1) + - geom_segment(aes(x = 95, y = Inf, xend = 95, yend = 0.1), color = "black", linetype = "longdash") + - geom_segment(aes(x = -Inf, y = 0.1, xend = 95, yend = 0.1), color = "black", linetype = "longdash") + - geom_segment(aes(x = 97.5, y = Inf, xend = 97.5, yend = 0.05), color = "black", linetype = "dashed") + - geom_segment(aes(x = -Inf, y = 0.05, xend = 97.5, yend = 0.05), color = "black", linetype = "dashed") + + annotate("segment", x = 95, y = Inf, xend = 95, yend = 0.1, color = "black", linetype = "longdash") + + annotate("segment", x = -Inf, y = 0.1, xend = 95, yend = 0.1, color = "black", linetype = "longdash") + + annotate("segment", x = 97.5, y = Inf, xend = 97.5, yend = 0.05, color = "black", linetype = "dashed") + + annotate("segment", x = -Inf, y = 0.05, xend = 97.5, yend = 0.05, color = "black", linetype = "dashed") + theme_modern() + scale_y_reverse(breaks = c(0.05, round(seq(0, 1, length.out = 11), digits = 2))) + scale_x_continuous(breaks = c(95, 97.5, round(seq(50, 100, length.out = 6)))) +