From 3bc32f003512d7dce015893f2d8587ee37fdb87e Mon Sep 17 00:00:00 2001 From: Emily de la Rua Date: Thu, 24 Oct 2024 16:09:14 -0400 Subject: [PATCH 1/2] Move nestcolor to imports --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 1c6f7605e3..36d56db9c3 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -44,6 +44,7 @@ Imports: magrittr (>= 1.5), MASS (>= 7.3-60), methods, + nestcolor (>= 0.1.1), Rdpack (>= 2.4), rlang (>= 1.1.0), scales (>= 1.2.0), @@ -56,7 +57,6 @@ Suggests: knitr (>= 1.42), lattice (>= 0.18-4), lubridate (>= 1.7.9), - nestcolor (>= 0.1.1), rmarkdown (>= 2.23), stringr (>= 1.4.1), svglite (>= 2.1.2), From 85197ddb8e2f0c36c89fccd9a256f234a8044cf0 Mon Sep 17 00:00:00 2001 From: Emily de la Rua Date: Thu, 24 Oct 2024 17:02:36 -0400 Subject: [PATCH 2/2] Update docs --- .pre-commit-config.yaml | 1 + tests/testthat/test-individual_patient_plot.R | 3 --- vignettes/tern.Rmd | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8da7a5ac74..8a92b84bf8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,6 +33,7 @@ repos: - magrittr - MASS - methods + - nestcolor - Rdpack - rlang - scales diff --git a/tests/testthat/test-individual_patient_plot.R b/tests/testthat/test-individual_patient_plot.R index 48fb863a6c..0262fe2865 100644 --- a/tests/testthat/test-individual_patient_plot.R +++ b/tests/testthat/test-individual_patient_plot.R @@ -3,9 +3,6 @@ adlb <- tern_ex_adlb %>% slice(1:36) testthat::test_that("h_g_ipp works correctly", { - skip_if_not_installed("nestcolor") - require("nestcolor", quietly = TRUE) - testthat::expect_silent(h_g_ipp( df = adlb, xvar = "AVISIT", diff --git a/vignettes/tern.Rmd b/vignettes/tern.Rmd index 86dec5b796..3c5b488bcd 100644 --- a/vignettes/tern.Rmd +++ b/vignettes/tern.Rmd @@ -133,7 +133,7 @@ adlb <- formatters::ex_adlb adlb <- dplyr::filter(adlb, PARAMCD == "ALT", AVISIT != "SCREENING") ``` -The optional `nestcolor` package can be loaded in to apply the standardized NEST color palette to all `tern` plots. +The `nestcolor` package can be loaded in to apply the standardized NEST color palette to all `tern` plots. ```{r} library(nestcolor)