Skip to content

Commit

Permalink
Fixed S3 generic argument name p for log_quantile()
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Mar 21, 2023
1 parent 8e04201 commit ea9a400
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# distributional (development version)

Small patch to resolve issues with CRAN checks.

## Bug fixes

* Fixed object structure resulting from transforming sample distributions (#81).
* Improved reliability of `quantile(<dist_mixture>)`.
* Defined `cdf(<dist_sample>)` as Pr(X <= x), not Pr(X < x).
* Fixed S3 generic argument name `p` for `log_quantile()`.

# distributional 0.3.1

Expand Down
2 changes: 1 addition & 1 deletion R/distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ quantile.distribution <- function(x, p, ..., log = FALSE){
p <- arg_listable(p, .ptype = double())
dist_apply(x, quantile, p = p, ...)
}
log_quantile <- function(x, q, ...) {
log_quantile <- function(x, p, ...) {
UseMethod("log_quantile")
}
#' @export
Expand Down

0 comments on commit ea9a400

Please sign in to comment.