Closed cmadland closed 6 months ago
Thanks for pointing this out. For now, add .cols = everything()
to the code:
soc_anx_tib |>
dplyr::summarise(
across(.cols = everything(), .fns = list(valid = ~sum(!is.na(.x)), missing = ~sum(is.na(.x))), .names = "{.col}_{.fn}")
)
I've changed this in my raw code so it will be updated on gitHub next time I do a push.
https://github.com/profandyfield/discovr/blob/342aad3d3d09d7b4424bfb31527828fd0ccc3975/inst/tutorials/discovr_08/discovr_08.Rmd#L986
The function itself is not deprecated, but the use of the function
across
without.cols
is deprecated indplyr 1.1.1
.When trying to replicate the function on line 986 in my own .qmd file in VS Code, I get an error, but it only displays once every 8 hours.
VS Code version
dplyr version
RStudio version
R Version
4.2.3