Skip to content

Commit

Permalink
keep check happier by using .data not .
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Aug 25, 2023
1 parent 5995660 commit f77d4e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export(keys2list)
export(multi_connection_table)
export(triple_cosine_plot)
import(nat)
importFrom(dplyr,.data)
importFrom(dplyr,all_of)
importFrom(dplyr,any_of)
importFrom(dplyr,case_when)
Expand Down
7 changes: 4 additions & 3 deletions R/meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,13 @@ hemibrain_meta <- function(ids, ...) {
tres
}

#' @importFrom dplyr .data
malecns_meta <- function(ids, ...) {
tres=malecns::mcns_neuprint_meta(ids)
tres <- tres %>%
mutate(side=malecns::mcns_soma_side(.)) %>%
mutate(pgroup=malecns::mcns_predict_group(.)) %>%
mutate(ptype=malecns::mcns_predict_type(.)) %>%
mutate(side=malecns::mcns_soma_side(.data)) %>%
mutate(pgroup=malecns::mcns_predict_group(.data)) %>%
mutate(ptype=malecns::mcns_predict_type(.data)) %>%
rename(otype=type, type=ptype, ogroup=group, group=pgroup) %>%
# special case DNs
mutate(type=case_when(
Expand Down

0 comments on commit f77d4e1

Please sign in to comment.