thomasp85 / tidygraph

Compare 75c814e ... +0 ... 80c205f

Showing 1 of 1 files from the diff.

@@ -1,17 +1,17 @@
Loading
1 -
# TODO: Update signature to include `name` once we begin to depend on dplyr 1.0
2 -
3 1
#' @export
4 2
#' @importFrom dplyr pull
5 -
pull.tbl_graph <- function(.data, var = -1, ...) {
3 +
pull.tbl_graph <- function(.data, var = -1, name = NULL, ...) {
6 4
  d_tmp <- as_tibble(.data)
7 5
  var <- enquo(var)
8 -
  pull(d_tmp, !! var, ...)
6 +
  name <- enquo(name)
7 +
  pull(d_tmp, !! var, !! name, ...)
9 8
}
10 9
#' @export
11 10
#' @importFrom dplyr pull
12 -
pull.morphed_tbl_graph <- function(.data, var = -1, ...) {
11 +
pull.morphed_tbl_graph <- function(.data, var = -1, name = NULL, ...) {
13 12
  var <- enquo(var)
14 -
  lapply(.data, pull, !! var, ...)
13 +
  name <- enquo(name)
14 +
  lapply(.data, pull, !! var, !! name, ...)
15 15
}
16 16
#' @export
17 17
dplyr::pull

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
R +<.01% 47.00%
src/get_paths.cpp 0.00%
Project Totals (47 files) 46.40%
Loading