From cc4ec3dcccd93986acb3686f2a5d0adcbe0b1e56 Mon Sep 17 00:00:00 2001 From: jamesaazam Date: Fri, 7 Jul 2023 18:21:59 -0500 Subject: [PATCH] Removed calling of libraries in tests because they are already in Suggests --- tests/testthat/models_serialization.R | 5 ----- tests/testthat/test_simulate_data.R | 3 --- tests/testthat/test_visualisation.R | 9 --------- 3 files changed, 17 deletions(-) diff --git a/tests/testthat/models_serialization.R b/tests/testthat/models_serialization.R index 33c0acfb..3f8d5323 100644 --- a/tests/testthat/models_serialization.R +++ b/tests/testthat/models_serialization.R @@ -1,8 +1,3 @@ -library(devtools) -library(dplyr) -library(serofoi) -library(testthat) - set.seed(1234) # For reproducibility #----- Read and prepare data diff --git a/tests/testthat/test_simulate_data.R b/tests/testthat/test_simulate_data.R index 34bedf84..e044c57b 100644 --- a/tests/testthat/test_simulate_data.R +++ b/tests/testthat/test_simulate_data.R @@ -1,7 +1,4 @@ test_that("simulated data", { - library(dplyr) - library(serofoi) - seed <- 1234 size_age_class <- 5 #----- Test for constant FoI diff --git a/tests/testthat/test_visualisation.R b/tests/testthat/test_visualisation.R index 800c1102..2c43d004 100644 --- a/tests/testthat/test_visualisation.R +++ b/tests/testthat/test_visualisation.R @@ -1,15 +1,6 @@ # Test for the function plot_seroprev_fitted - -library(testthat) - test_that("individual models", { set.seed(1234) # For reproducibility - - library(devtools) - library(dplyr) - library(vdiffr) - library(jsonlite) - data("simdata_large_epi") simdata <- simdata_large_epi %>% prepare_serodata() no_transm <- 0.0000000001