Skip to content

Commit

Permalink
Merge pull request #57 from certara/cran_version_1_5_1
Browse files Browse the repository at this point in the history
prepare version 1.5.1 for CRAN
  • Loading branch information
certara-jcraig authored Jan 22, 2024
2 parents 4644e28 + 9e3c605 commit 7d0a3b0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
Package: tidyvpc
Type: Package
Title: VPC Percentiles and Prediction Intervals
Version: 1.5.0
Version: 1.5.1
Authors@R: c(
person("Olivier", "Barriere", email = "[email protected]",
role = c("aut")),
person("Benjamin", "Rich", email = "[email protected]",
role = c("aut")),
person("James", "Craig", email = "[email protected]",
role = c("aut", "cre")),
role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-1757-9234")),
person("Samer", "Mouksassi", email = "[email protected]",
role = c("aut")),
person("Bill", "Denney", email="[email protected]",
Expand Down Expand Up @@ -37,13 +38,13 @@ Imports:
methods,
mgcv,
classInt,
cluster,
ggplot2,
stats,
fastDummies,
utils,
egg
Suggests:
cluster,
dplyr,
KernSmooth,
knitr,
Expand Down
4 changes: 1 addition & 3 deletions R/vpcstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ stratify.tidyvpcobj <- function(o, formula, data=o$data, ...) {
#' simulated(sim_data, y=DV) %>%
#' stratify(~ GENDER) %>%
#' binning(stratum = list(GENDER = "M"), bin = "jenks", nbins = 5, by.strata = TRUE) %>%
#' binning(stratum = list(GENDER = "F"), bin = "pam", nbins = 4, by.strata = TRUE) %>%
#' binning(stratum = list(GENDER = "F"), bin = "kmeans", nbins = 4, by.strata = TRUE) %>%
#' vpcstats()
#'
#' # Binning Categorical DV using rounded time variable
Expand Down Expand Up @@ -763,10 +763,8 @@ bininfo.tidyvpcobj <- function(o, by.strata=o$bin.by.strata, ...) {
#' bin_by_eqcut(nbins=4)(x)
#' bin_by_ntile(nbins=4)(x)
#'
#' \donttest{
#' bin_by_pam(nbins=4)(x)
#' bin_by_classInt("pretty", nbins=4)(x)
#' }
#'
#' @name binningfunctions
NULL
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Release summary

This is a minor release `1.5.0` that provides misc usability enhancements, including the ability to plot percentage of BLQ and/or ALQ in `plot.tidyvpcobj` if `censoring()` is used, support for `binning()` either before or after usage of `predcorrect()`, and additional validation checks within `predcorrect()` and `simulated()` functions to identify potential issues within data.
This is a patch release `1.5.1` that ensures unit tests do not fail when env var `_R_CHECK_DEPENDS_ONLY_=true` in `R CMD check`. As a result, the `cluster` dependency has been moved from `Suggests` to `Imports`.

## Test environments

Expand Down
2 changes: 1 addition & 1 deletion man/binning.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/binningfunctions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion tests/testthat/test-binning.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ test_that("cat obs strat vpcstats is correct", {
})

test_that("binning methods are valid", {

## Subest MDV = 0
obs <- obs_data[MDV == 0]
sim <- sim_data[MDV == 0]
Expand Down

0 comments on commit 7d0a3b0

Please sign in to comment.