From fd8621a88d356b3c7c4c9c91f5ce7c5821e3c59d Mon Sep 17 00:00:00 2001 From: Joel Therrien Date: Fri, 26 Jul 2019 15:11:32 -0700 Subject: [PATCH] Minor updates to pass CRAN checks --- DESCRIPTION | 3 ++- R/cr_integratedBrierScore.R | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 0973bd4..b8829b0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -15,7 +15,8 @@ Copyright: All provided source code is copyrighted and owned by Joel Therrien. Encoding: UTF-8 LazyData: true Imports: - rJava (>= 0.9-9) + rJava (>= 0.9-9), + stats (>= 3.4.0) Suggests: parallel, testthat, diff --git a/R/cr_integratedBrierScore.R b/R/cr_integratedBrierScore.R index ae825dc..9525238 100644 --- a/R/cr_integratedBrierScore.R +++ b/R/cr_integratedBrierScore.R @@ -81,7 +81,7 @@ integratedBrierScore <- function(responses, predictions, event, time, censoringD java.censoringDistribution <- createRightContinuousStepFunction(censoringDistribution$x, censoringDistribution$y, defaultY = 1.0) } else if("stepfun" %in% class(censoringDistribution)){ - x <- knots(censoringDistribution) + x <- stats::knots(censoringDistribution) y <- censoringDistribution(x) java.censoringDistribution <- createRightContinuousStepFunction(x, y, defaultY = 1.0)