Skip to content

Remove plyr::compact()#372

Open
MichaelChirico wants to merge 3 commits intodkahle:masterfrom
MichaelChirico:patch-3
Open

Remove plyr::compact()#372
MichaelChirico wants to merge 3 commits intodkahle:masterfrom
MichaelChirico:patch-3

Conversation

@MichaelChirico
Copy link

Another in the series (#370, #371) of gradually weaning off of {plyr} as a dependency.

"Modern" code I suppose is meant to use purrr::compact() instead, but it's not a drop-in replacement:

x = list(character(), NULL, 1)
purrr::compact(x)
# [[1]]
# [1] 1

plyr::compact(x)
# [[1]]
# character(0)

# [[2]]
# [1] 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant