sudden problems

I think I have changed some settings or some package is causing problems. I don't know. But the code does not work anymore:

library(tidyverse)
iris <- as_tibble(iris)
starwars %>% select(height)

Es folgt die Fehlermeldung:

Error in vctrs::vec_as_subscript():
! ... must be empty.
x Problematic argument:

  • call = call
    Run rlang::last_error() to see where the error occurred.

And further:

rlang::last_error()
<error/rlib_error_dots_nonempty>
Error in vctrs::vec_as_subscript():
! ... must be empty.
x Problematic argument:

  • call = call

Backtrace:

  1. starwars %>% select(height)
  2. dplyr:::select.data.frame(., height)
  3. tidyselect::eval_select(expr(c(...)), .data)
  4. tidyselect:::eval_select_impl(...)
  5. tidyselect:::vars_select_eval(...)
  6. tidyselect:::walk_data_tree(expr, data_mask, context_mask)
  7. tidyselect:::eval_c(expr, data_mask, context_mask)
  8. tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
  9. tidyselect:::walk_data_tree(init, data_mask, context_mask)
  10. tidyselect:::as_indices_sel_impl(...)
  11. tidyselect:::as_indices_impl(...)
  12. vctrs::vec_as_subscript(x, logical = "error", call = call, arg = arg)
    Run rlang::last_trace() to see the full context.

rlang::last_trace()
<error/rlib_error_dots_nonempty>
Error in vctrs::vec_as_subscript():
! ... must be empty.
x Problematic argument:

  • call = call

Backtrace:
x

  1. +-starwars %>% select(height)
  2. +-dplyr::select(., height)
  3. -dplyr:::select.data.frame(., height)
  4. -tidyselect::eval_select(expr(c(...)), .data)
  5. \-tidyselect:::eval_select_impl(...)
    
  6.   +-tidyselect:::with_subscript_errors(...)
    
  7.   | \-rlang::try_fetch(...)
    
  8.   |   \-base::withCallingHandlers(...)
    
  9.   \-tidyselect:::vars_select_eval(...)
    
  10.     \-tidyselect:::walk_data_tree(expr, data_mask, context_mask)
    
  11.       \-tidyselect:::eval_c(expr, data_mask, context_mask)
    
  12.         \-tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
    
  13.           \-tidyselect:::walk_data_tree(init, data_mask, context_mask)
    
  14.             \-tidyselect:::as_indices_sel_impl(...)
    
  15.               \-tidyselect:::as_indices_impl(...)
    
  16.                 \-vctrs::vec_as_subscript(x, logical = "error", call = call, arg = arg)
    
  17.                   \-ellipsis::check_dots_empty()
    
  18.                     \-rlang:::action_dots(...)
    
  19.                       +-base (local) try_dots(...)
    
  20.                       \-rlang (local) action(...)
    

Does anyone have experience with this?

I would restart R clean, no restoring workspaces etc.

update.packages()

Then restart again, and try the code again.

1 Like

Thank you. I have reinstalled it. Now it works again. Very strange

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.