From 7f0b3931b9f8671c9a47fd55d4ae02bd53110f6d Mon Sep 17 00:00:00 2001 From: Marques Date: Fri, 15 Dec 2023 13:42:03 -0500 Subject: [PATCH] try to fix checks --- NAMESPACE | 1 - R/process_monitors.R | 2 +- R/process_spatial_covariates.R | 1 + vignettes/noaa_obs_processing_comparison_to_era5.Rmd | 11 +---------- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index e5fc34b..51ca6fb 100755 --- a/NAMESPACE +++ b/NAMESPACE @@ -40,5 +40,4 @@ import(data.table) import(ggplot2) import(spatialsample) import(tidyr) -importFrom(data.table,"%>%") importFrom(magrittr,"%>%") diff --git a/R/process_monitors.R b/R/process_monitors.R index a4080f4..a7d9e59 100755 --- a/R/process_monitors.R +++ b/R/process_monitors.R @@ -3,7 +3,7 @@ #' @param filename character path to noaa observations file #' @returns a list with two datatable, one for the whole observations and #' the other with the location metadata only -#' @importFrom data.table "%>%" +#' @importFrom magrittr "%>%" #' @export format_noaa_aws <- function(filename) { na_flag <- NULL diff --git a/R/process_spatial_covariates.R b/R/process_spatial_covariates.R index b549782..28848c8 100755 --- a/R/process_spatial_covariates.R +++ b/R/process_spatial_covariates.R @@ -3,6 +3,7 @@ #' @param in_filepath A character path to data file with high resolution #' @param out_filepath A character path to the folder where the aggregate file #' will be stored +#' @importFrom magrittr "%>%" agg_rast <- function(in_filepath, out_filepath, agg_fact = 30) { raw <- terra::rast(in_filepath) agg <- terra::aggregate(raw, fact = agg_fact, fun = "median") %>% diff --git a/vignettes/noaa_obs_processing_comparison_to_era5.Rmd b/vignettes/noaa_obs_processing_comparison_to_era5.Rmd index ce6103c..1a28941 100755 --- a/vignettes/noaa_obs_processing_comparison_to_era5.Rmd +++ b/vignettes/noaa_obs_processing_comparison_to_era5.Rmd @@ -3,17 +3,8 @@ title: "NOAA observations processing and comparison to ERA5" date: "2023-12-15" author: "Eva Marques" output: rmarkdown::html_vignette -vignette: > - %\VignetteIndexEntry{NOAA observations processing and comparison to ERA5} - %\VignetteEngine{knitr::rmarkdown} - %\VignetteEncoding{UTF-8} - --- -```{r} -library(knitr) -# to base64 encode images -opts_knit$set(upload.fun = image_uri) -``` + ```{r} input_path <- "../input/"