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

new vctrs breaking gather #891

Closed
Nicktz opened this issue Feb 21, 2020 · 2 comments
Closed

new vctrs breaking gather #891

Nicktz opened this issue Feb 21, 2020 · 2 comments

Comments

@Nicktz
Copy link

Nicktz commented Feb 21, 2020

I just installed the latest version of vctrs, and it is causing ''gather'' to break.

I understand gather has been retired, but it is deeply ingrained in my code and not easily changeable to pivot_longer (which I like much less than gather to be honest).

Running the ''gather'' example here leads to an error as follows:

'Error: object 'vctrs_new_data_frame' not found'

library(dplyr)
# From https://stackoverflow.com/questions/1181060
stocks <- tibble(
  time = as.Date('2009-01-01') + 0:9,
  X = rnorm(10, 0, 1),
  Y = rnorm(10, 0, 2),
  Z = rnorm(10, 0, 4)
)

gather(stocks, "stock", "price", -time)

My session info follows:

other attached packages:
[1] forcats_0.4.0 stringr_1.4.0 dplyr_0.8.4 purrr_0.3.3 readr_1.3.1 tidyr_1.0.0 tibble_2.1.3 ggplot2_3.2.1 tidyverse_1.3.0

loaded via a namespace (and not attached):
[1] Rcpp_1.0.3 cellranger_1.1.0 pillar_1.4.3 compiler_3.6.0 dbplyr_1.4.2 tools_3.6.0 packrat_0.5.0 lubridate_1.7.4 jsonlite_1.6
[10] lifecycle_0.1.0 nlme_3.1-139 gtable_0.3.0 lattice_0.20-38 pkgconfig_2.0.3 rlang_0.4.4 reprex_0.3.0 cli_2.0.1 DBI_1.1.0
[19] rstudioapi_0.11 haven_2.2.0 withr_2.1.2 xml2_1.2.2 httr_1.4.1 fs_1.3.1 generics_0.0.2 vctrs_0.2.3 hms_0.5.3
[28] grid_3.6.0 tidyselect_1.0.0 glue_1.3.1.9000 R6_2.4.1 fansi_0.4.1 readxl_1.3.1 modelr_0.1.5 magrittr_1.5 ellipsis_0.3.0
[37] backports_1.1.4 scales_1.0.0 rvest_0.3.5 assertthat_0.2.1 colorspace_1.4-1 stringi_1.4.5 lazyeval_0.2.2 munsell_0.5.0 broom_0.5.2
[46] crayon_1.3.4

@lionel-
Copy link
Member

lionel- commented Feb 21, 2020

Please reinstall vctrs following the advice on rstats-wtf/what-they-forgot#62 (comment)

@Nicktz
Copy link
Author

Nicktz commented Feb 21, 2020

@lionel- Magic thanks!

@Nicktz Nicktz closed this as completed Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants