Skip to content

Commit

Permalink
namespace fixes in spod_clean_zones_v2 to make R CMD check happy
Browse files Browse the repository at this point in the history
  • Loading branch information
e-kotov committed Oct 20, 2024
1 parent 6bae1af commit af1d23c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ export(spod_get_data_dir)
export(spod_get_valid_dates)
export(spod_get_zones)
importFrom(rlang,.data)
importFrom(stats,median)
importFrom(utils,URLencode)
importFrom(utils,vignette)
10 changes: 6 additions & 4 deletions R/get.R
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ spod_get_zones_v2 <- function(
#'
#' @param zones_path The path to the zones spatial data file.
#' @return A spatial object containing the cleaned zones data.
#' @importFrom stats median
#' @keywords internal
#'
spod_clean_zones_v2 <- function(zones_path) {
Expand Down Expand Up @@ -469,9 +470,10 @@ spod_clean_zones_v2 <- function(zones_path) {
)

zones_ref_aggregated <- zones_ref_renamed |>
dplyr::group_by(id) |>
dplyr::summarise(across(
.cols = everything(),
dplyr::group_by(.data$id) |>
dplyr::summarise(
dplyr::across(
.cols = dplyr::everything(),
.fns = ~ paste(.x, collapse = "; "),
.names = "{.col}"
))
Expand All @@ -480,7 +482,7 @@ spod_clean_zones_v2 <- function(zones_path) {
zones_ref_aggregated <- zones_ref_aggregated |>
dplyr::mutate(
dplyr::across(
.cols = everything(),
.cols = dplyr::everything(),
.fns = spod_unique_separated_ids
)
)
Expand Down

0 comments on commit af1d23c

Please sign in to comment.