From 28afa1550de1ec9ae9199f1e322f38235743bd21 Mon Sep 17 00:00:00 2001 From: Anna Krystalli Date: Fri, 15 Sep 2023 11:40:10 +0300 Subject: [PATCH] Fix dependencies --- DESCRIPTION | 7 +++++-- NAMESPACE | 3 --- R/validate_model_metadata.R | 4 ---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index c3fefe98..54aea2cb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -32,13 +32,16 @@ Imports: dplyr, fs, hubUtils (>= 0.0.0.9014), + jsonlite, + jsonvalidate, lubridate, magrittr, octolog, purrr, rlang, stringr, - tibble + tibble, + yaml Suggests: covr, mockery, @@ -59,4 +62,4 @@ URL: https://github.com/Infectious-Disease-Modeling-Hubs/hubValidations, https://infectious-disease-modeling-hubs.github.io/hubValidations/ BugReports: https://github.com/Infectious-Disease-Modeling-Hubs/hubValidations/issues Depends: - R (>= 2.10) + R (>= 3.5.0) diff --git a/NAMESPACE b/NAMESPACE index 864f8459..c5cc8304 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -39,7 +39,4 @@ export(read_model_out_file) export(validate_model_data) export(validate_model_file) export(validate_model_metadata) -importFrom(jsonlite,toJSON) -importFrom(jsonvalidate,json_validate) importFrom(magrittr,"%>%") -importFrom(yaml,read_yaml) diff --git a/R/validate_model_metadata.R b/R/validate_model_metadata.R index 73c80883..7d910e82 100644 --- a/R/validate_model_metadata.R +++ b/R/validate_model_metadata.R @@ -4,10 +4,6 @@ #' @return An object of class `hub_validations`. Each named element contains #' a `hub_check` class object reflecting the result of a given check. Function #' will return early if a check returns an error. -#' -#' @importFrom yaml read_yaml -#' @importFrom jsonlite toJSON -#' @importFrom jsonvalidate json_validate #' @export #' #' @examples