Skip to content

Commit

Permalink
Merge pull request #87 from atorus-research/82.vedha-add-tests-for-la…
Browse files Browse the repository at this point in the history
…bel-functions

Adding test cases for label functions and fix existing test warnings
  • Loading branch information
bms63 authored Apr 28, 2023
2 parents 8daf683 + 935c219 commit d217dec
Show file tree
Hide file tree
Showing 2 changed files with 495 additions and 100 deletions.
2 changes: 1 addition & 1 deletion R/utils-xportr.R
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ xpt_validate <- function(data) {
#' @return The R Object at the top of a pipe stack
#' @noRd
get_pipe_call <- function() {
call_strs <- map_chr(sys.calls(), as_label)
call_strs <- map_chr(as.list(sys.calls()), as_label)
top_call <- min(which(str_detect(call_strs, "%>%")))
call_str <- as_label(sys.calls()[[top_call]])
trimws(strsplit(call_str, "%>%", fixed = TRUE)[[1]][[1]])
Expand Down
Loading

0 comments on commit d217dec

Please sign in to comment.