From 6a670bc315da1e81c5443c3baf8a9fcd2b0383b0 Mon Sep 17 00:00:00 2001 From: prdm0 Date: Tue, 30 Apr 2024 14:00:10 -0300 Subject: [PATCH] Version 0.1.2 --- DESCRIPTION | 2 +- R/accept_reject.r | 4 ++-- README.md | 4 ++-- docs/404.html | 10 ++++------ docs/LICENSE.html | 8 ++++---- docs/articles/accept_reject.html | 16 +++++++--------- .../figure-html/unnamed-chunk-12-1.png | Bin 104886 -> 104605 bytes .../figure-html/unnamed-chunk-13-1.png | Bin 96419 -> 94800 bytes docs/articles/index.html | 10 +++++----- docs/articles/inspect.html | 14 ++++++-------- .../figure-html/unnamed-chunk-2-1.png | Bin 124850 -> 124526 bytes .../figure-html/unnamed-chunk-3-1.png | Bin 94334 -> 94085 bytes docs/authors.html | 8 ++++---- docs/deps/bootstrap-5.3.1/bootstrap.min.css | 2 +- docs/index.html | 18 ++++++++---------- docs/news/index.html | 8 ++++---- docs/pkgdown.js | 8 ++++---- docs/pkgdown.yml | 4 ++-- docs/reference/Rplot001.png | Bin 19625 -> 19600 bytes docs/reference/Rplot002.png | Bin 21613 -> 21585 bytes docs/reference/Rplot003.png | Bin 24157 -> 24008 bytes docs/reference/accept_reject-1.png | Bin 54780 -> 53464 bytes docs/reference/accept_reject-2.png | Bin 60956 -> 60822 bytes docs/reference/accept_reject.html | 10 +++++----- .../figures/README-unnamed-chunk-3-1.png | Bin 46754 -> 43673 bytes .../figures/README-unnamed-chunk-3-2.png | Bin 35103 -> 35208 bytes .../figures/README-unnamed-chunk-4-1.png | Bin 49667 -> 49071 bytes .../figures/README-unnamed-chunk-4-2.png | Bin 42201 -> 42111 bytes docs/reference/index.html | 14 ++++++-------- docs/reference/inspect-1.png | Bin 84797 -> 84571 bytes docs/reference/inspect-2.png | Bin 86149 -> 85973 bytes docs/reference/inspect-3.png | Bin 71023 -> 70762 bytes docs/reference/inspect.html | 8 ++++---- docs/reference/plot.accept_reject-1.png | Bin 54578 -> 53202 bytes docs/reference/plot.accept_reject-2.png | Bin 60752 -> 60612 bytes docs/reference/plot.accept_reject.html | 8 ++++---- docs/reference/print.accept_reject.html | 8 ++++---- docs/reference/qqplot.accept_reject-1.png | Bin 51100 -> 50952 bytes docs/reference/qqplot.accept_reject-2.png | Bin 65919 -> 65771 bytes docs/reference/qqplot.accept_reject.html | 15 ++++++--------- docs/reference/qqplot.html | 13 +++++-------- docs/search.json | 2 +- man/figures/README-unnamed-chunk-3-1.png | Bin 46754 -> 43673 bytes man/figures/README-unnamed-chunk-3-2.png | Bin 35103 -> 35208 bytes man/figures/README-unnamed-chunk-4-1.png | Bin 49667 -> 49071 bytes man/figures/README-unnamed-chunk-4-2.png | Bin 42201 -> 42111 bytes 46 files changed, 89 insertions(+), 105 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 9296de2..4363f0e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -13,7 +13,7 @@ Encoding: UTF-8 Roxygen: list(markdown = TRUE) URL: https://prdm0.github.io/AcceptReject/ BugReports: https://github.com/prdm0/AcceptReject/issues/ -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.1 VignetteBuilder: knitr Imports: assertthat, diff --git a/R/accept_reject.r b/R/accept_reject.r index c5c1ec1..123409d 100644 --- a/R/accept_reject.r +++ b/R/accept_reject.r @@ -156,13 +156,13 @@ accept_reject <- if (warning && f(xlim[2L]) > 0.01) { cli::cli_alert_warning( - glue::glue("Warning: f({xlim[2L]}) is {f(xlim[2L])}. If f is defined for x >= f({xlim[2L]}), trying a upper limit might be better.") + glue::glue("Warning: f({xlim[2L]}) is {f(xlim[2L])}. If f is defined for x >= {xlim[2L]}, trying a upper limit might be better.") ) } if (warning && xlim[1L] < 0 && f(xlim[1L]) > 0.01) { cli::cli_alert_warning( - glue::glue("Warning: f({xlim[1L]}) is {f(xlim[1L])}. If f is defined for x <= f({xlim[1L]}), trying a lower limit might be better.") + glue::glue("Warning: f({xlim[1L]}) is {f(xlim[1L])}. If f is defined for x <= {xlim[1L]}, trying a lower limit might be better.") ) } diff --git a/README.md b/README.md index c30d300..31cc6ed 100644 --- a/README.md +++ b/README.md @@ -361,7 +361,7 @@ case_1 <- accept_reject( xlim = c(0, 6) ) toc() -#> 0.01 sec elapsed +#> 0.008 sec elapsed # Specifying the base probability density function tic() @@ -377,7 +377,7 @@ case_2 <- accept_reject( c = 1.2 ) toc() -#> 0.004 sec elapsed +#> 0.005 sec elapsed # Visualizing the results p1 <- plot(case_1) diff --git a/docs/404.html b/docs/404.html index f0d84d4..8e9281f 100644 --- a/docs/404.html +++ b/docs/404.html @@ -16,7 +16,7 @@ - + GNU General Public License • AcceptRejectGNU General Public License • AcceptReject Skip to contents -