From 178082a33c9fb9a5f9fcb25ce36f7815a13b1310 Mon Sep 17 00:00:00 2001 From: VisruthSK <67435125+VisruthSK@users.noreply.github.com> Date: Fri, 25 Jul 2025 18:23:19 -0700 Subject: [PATCH] Importing lattice for now --- DESCRIPTION | 1 + NAMESPACE | 1 + R/ISCAM-package.R | 1 + R/plots.R | 4 +--- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 79e2ac5..97ef36a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -21,6 +21,7 @@ Depends: R (>= 2.10) Imports: graphics, + lattice, stats, withr Suggests: diff --git a/NAMESPACE b/NAMESPACE index a523532..bbae30f 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -37,6 +37,7 @@ importFrom(graphics,polygon) importFrom(graphics,stripchart) importFrom(graphics,text) importFrom(graphics,title) +importFrom(lattice,histogram) importFrom(stats,dbinom) importFrom(stats,dchisq) importFrom(stats,dexp) diff --git a/R/ISCAM-package.R b/R/ISCAM-package.R index 9519917..8965e00 100644 --- a/R/ISCAM-package.R +++ b/R/ISCAM-package.R @@ -3,6 +3,7 @@ ## usethis namespace: start #' @importFrom graphics abline axis bxp grid hist legend lines mtext par points polygon stripchart text title +#' @importFrom lattice histogram #' @importFrom stats dbinom dchisq dexp dhyper dlnorm dnorm dt median pbinom pchisq phyper pnorm pt qbeta qbinom qnorm qt quantile sd #' @importFrom withr local_par local_options ## usethis namespace: end diff --git a/R/plots.R b/R/plots.R index 3dc4547..4bb680d 100644 --- a/R/plots.R +++ b/R/plots.R @@ -133,6 +133,4 @@ iscamdotplot <- function( } # TODO: look at lattice::histogram -#' @noRd -#' @keywords internal -iscamhistogram <- function() {} +iscamhistogram <- function(...) lattice::histogram(...)