tidyverse / dplyr

dplyr: A grammar of data manipulation
https://dplyr.tidyverse.org/
Other
4.77k stars 2.12k forks source link

Error: 'vec_as_subscript' is not an exported object from 'namespace:vctrs' #5064

Closed Michael-Sheppard closed 4 years ago

Michael-Sheppard commented 4 years ago

See https://github.com/tidyverse/dplyr/issues/5048. Now I am getting this error again, except for vec_as_subscript instead of vec_as_subscript2. I've reinstalled vctrs, made sure my packages were up to date, and it still seems like this hasn't truly been solved.

This occurred when trying to run a chunk of code containing standard tidyverse functions like filter, gather, etc. The only solution is to close the session and start a new one. The only libraries being loaded are tidyverse, lubridate, and janitor.

I hope this is fixed soon because this is starting to occur more frequently and interfere with my work.

hadley commented 4 years ago

The most likely scenario is that you're on windows, and you're trying to install a package while it's in another R session. This is a known bug with install.packages().

Michael-Sheppard commented 4 years ago

No, this is not the case. I am using an instance of RStudio Server Pro. Our servers are not Windows. This occurs when only running one session as well.

The exact same code will run perfectly after closing the session and starting a new one.

hadley commented 4 years ago

Can you please provide a reprex + traceback? But I'm almost certain it's an install problem

Michael-Sheppard commented 4 years ago

I will provide a reprex and traceback the next time this happens. Adding in that this only happens sometimes. That is what is so weird about the error. This usually occurs an hour so into my session. All libraries are loaded at the very beginning so there are no strange collisions occurring. Restarting the session has been the only solution for me and my colleagues when we experience this error.

Michael-Sheppard commented 4 years ago

I am no longer experiencing this issue after I uninstalled tidyverse, pillar, and vctrs and then reinstalling all 3.