Skip to content

Ch 14-location.Rmd:105-109 #1176

Description

@khaors

Hello:

I am trying to create the book in my ubuntu 25.10 box with R 4.5.1. I am getting the following error after the last repository update:

Error inmutate(): ℹ In argument: across(...). Caused by error in across(): ! Can't select columns with pop. ✖ pop` must be numeric or character, not a <tbl_df> object.
Backtrace:

  1. ├─dplyr::mutate(...)
  2. ├─dplyr:::mutate.data.frame(...)
  3. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  4. │ ├─base::withCallingHandlers(...)
  5. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  6. │ └─dplyr:::expand_across(dot)
  7. │ └─dplyr:::across_setup(...)
  8. │ └─tidyselect::eval_select(cols, data = data, error_call = error_call)
  9. │ └─tidyselect:::eval_select_impl(...)
  10. │ ├─tidyselect:::with_subscript_errors(...)
  11. │ │ └─base::withCallingHandlers(...)
  12. │ └─tidyselect:::vars_select_eval(...)
  13. │ └─tidyselect:::walk_data_tree(expr, data_mask, context_mask)
  14. │ └─tidyselect:::eval_c(expr, data_mask, context_mask)
  15. │ └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
  16. │ └─tidyselect:::walk_data_tree(new, data_mask, context_mask)
  17. │ └─tidyselect:::as_indices_sel_impl(...)
  18. │ └─tidyselect:::as_indices_impl(...)
  19. │ └─vctrs::vec_as_subscript(x, logical = "error", call = call, arg = arg)
  20. └─rlang::cnd_signal(x)

Quitting from 14-location.Rmd:105-109 [14-location-4]
`

Any help is very much appreciated.

Thanks for your help.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions