Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example code in splice does not run #869

Closed
mccroweyclinton-EPA opened this issue Aug 15, 2022 · 1 comment · Fixed by #886
Closed

Example code in splice does not run #869

mccroweyclinton-EPA opened this issue Aug 15, 2022 · 1 comment · Fixed by #886

Comments

@mccroweyclinton-EPA
Copy link

The example code included in the roxygen2 notes from splice throws an error when this example code is ran. Please refer to
?purrr::splice()

inputs <- list(arg1 = "a", arg2 = "b")

# splice() concatenates the elements of inputs with arg3
splice(inputs, arg3 = c("c1", "c2")) %>% str()
list(inputs, arg3 = c("c1", "c2")) %>% str()
c(inputs, arg3 = c("c1", "c2")) %>% str()
@lionel-
Copy link
Member

lionel- commented Aug 16, 2022

splice() is marked with the "questioning" lifecycle badge because it's a part of the API we were unsure about. I think we should now look into deprecating it if possible. Or move to "superseded" if not.

hadley added a commit that referenced this issue Aug 25, 2022
hadley added a commit that referenced this issue Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants