Skip to content

Commit

Permalink
Pvec não dá problema quando o resultado tem len 0
Browse files Browse the repository at this point in the history
  • Loading branch information
C. T. Lente committed Feb 25, 2019
1 parent 3f356e2 commit 0e3d3c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/pvec.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ pvec <- function(.x, .f, ..., .cores = get_cores(), .progress = TRUE, .flatten =
return(list(result = NULL))
}
else {
if (length(x$result) == 0) {
return(list(result = NULL))
}
return(purrr::compact(x))
}
}
Expand Down

0 comments on commit 0e3d3c8

Please sign in to comment.