Skip to content

Commit

Permalink
Apply pkgname::func, avoid tidyselect warnings and notes
Browse files Browse the repository at this point in the history
Related to #86, #128 and #119
  • Loading branch information
damianooldoni committed Jun 26, 2024
1 parent 21a1ce2 commit f59b174
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 198 deletions.
31 changes: 0 additions & 31 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,45 +18,14 @@ export(visualize_pathways_level1)
export(visualize_pathways_level2)
export(visualize_pathways_year_level1)
export(visualize_pathways_year_level2)
importFrom(assertthat,assert_that)
importFrom(assertthat,is.date)
importFrom(dplyr,"%>%")
importFrom(dplyr,.data)
importFrom(dplyr,all_vars)
importFrom(dplyr,anti_join)
importFrom(dplyr,any_vars)
importFrom(dplyr,arrange)
importFrom(dplyr,as_tibble)
importFrom(dplyr,bind_rows)
importFrom(dplyr,count)
importFrom(dplyr,desc)
importFrom(dplyr,distinct)
importFrom(dplyr,filter)
importFrom(dplyr,filter_at)
importFrom(dplyr,group_by)
importFrom(dplyr,inner_join)
importFrom(dplyr,left_join)
importFrom(dplyr,mutate)
importFrom(dplyr,pull)
importFrom(dplyr,rename)
importFrom(dplyr,rename_at)
importFrom(dplyr,select)
importFrom(dplyr,starts_with)
importFrom(dplyr,vars)
importFrom(purrr,map2_chr)
importFrom(purrr,pmap_dfr)
importFrom(readr,read_tsv)
importFrom(readr,write_tsv)
importFrom(rgbif,name_usage)
importFrom(rgbif,occ_download_meta)
importFrom(rlang,"!!!")
importFrom(rlang,"!!")
importFrom(rlang,":=")
importFrom(rlang,sym)
importFrom(stringr,str_c)
importFrom(stringr,str_remove)
importFrom(stringr,str_split)
importFrom(svDialogs,dlgInput)
importFrom(tibble,tibble)
importFrom(tidyselect,ends_with)
importFrom(tidyselect,one_of)
8 changes: 4 additions & 4 deletions R/gbif_verify_keys.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ gbif_verify_keys <- function(keys, col_keys = "key") {
)
}
# as keys could contain duplicates, we make a copy called input_keys_df
input_keys_df <- tibble(key = as.numeric(keys))
input_keys_df <- dplyr::tibble(key = as.numeric(keys))
# make list of unique keys
keys <- unique(keys)
names(keys) <- as.character(keys)
Expand All @@ -129,9 +129,9 @@ gbif_verify_keys <- function(keys, col_keys = "key") {
if (length(valid_keys) > 0) {
valid_keys_df <-
valid_keys %>%
purrr::reduce(bind_rows) %>%
dplyr::mutate(is_from_gbif_backbone = ifelse(.data$datasetKey == uuid_backbone,
TRUE, FALSE
purrr::reduce(dplyr::bind_rows) %>%
dplyr::mutate(is_from_gbif_backbone = ifelse(
.data$datasetKey == uuid_backbone, TRUE, FALSE
))
check_keys <-
check_keys %>%
Expand Down
Loading

0 comments on commit f59b174

Please sign in to comment.