Skip to content

Commit

Permalink
Don't have ...names() available for all our R versions yet
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Sep 29, 2023
1 parent 3ef7867 commit f789629
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/pin-read-write.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ pin_write <- function(board, x,
tags = NULL,
force_identical_write = FALSE) {
check_board(board, "pin_write", "pin")
if (!missing(...) && (is.null(...names()) || ...names()[[1]] == "")) {
dots <- list2(...)
if (!missing(...) && (is.null(names(dots)) || names(dots)[[1]] == "")) {
cli::cli_abort('Arguments after the dots `...` must be named, like {.code type = "json"}.')
}

Expand Down

0 comments on commit f789629

Please sign in to comment.