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

Error when using count - dtplyr 1.0.1 #186

Closed
skiamu opened this issue Feb 11, 2021 · 1 comment
Closed

Error when using count - dtplyr 1.0.1 #186

skiamu opened this issue Feb 11, 2021 · 1 comment

Comments

@skiamu
Copy link

skiamu commented Feb 11, 2021

I'm having the following problem:

library(dtplyr)
library(tidyverse)
dt <- lazy_dt(dplyr::starwars)
count(dt, species)

I get

Error in UseMethod("count") : 
  no applicable method for 'count' applied to an object of class "c('dtplyr_step_first', 'dtplyr_step')"

Session Info:

R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] forcats_0.5.1   stringr_1.4.0   dplyr_1.0.4     purrr_0.3.4     readr_1.4.0    
 [6] tidyr_1.1.2     tibble_3.0.6    ggplot2_3.3.3   tidyverse_1.3.0 magrittr_2.0.1 
[11] dtplyr_1.0.1   

loaded via a namespace (and not attached):
 [1] zip_2.1.1         Rcpp_1.0.6        cellranger_1.1.0  pillar_1.4.7     
 [5] compiler_3.6.3    dbplyr_2.1.0      tools_3.6.3       lubridate_1.7.9.2
 [9] gtable_0.3.0      jsonlite_1.7.2    lifecycle_0.2.0   pkgconfig_2.0.3  
[13] rlang_0.4.10      reprex_1.0.0      openxlsx_4.2.3    DBI_1.1.1        
[17] cli_2.3.0         rstudioapi_0.13   haven_2.3.1       withr_2.4.1      
[21] xml2_1.3.2        httr_1.4.2        fs_1.5.0          hms_1.0.0        
[25] generics_0.1.0    vctrs_0.3.6       grid_3.6.3        tidyselect_1.1.0 
[29] glue_1.4.2        data.table_1.13.6 R6_2.5.0          fansi_0.4.2      
[33] readxl_1.3.1      modelr_0.1.8      scales_1.1.1      backports_1.2.1  
[37] ellipsis_0.3.1    rvest_0.3.6       assertthat_0.2.1  colorspace_2.0-0 
[41] utf8_1.1.4        stringi_1.5.3     munsell_0.5.0     broom_0.7.4      
[45] crayon_1.4.0 

Thanks for your help

@skiamu
Copy link
Author

skiamu commented Feb 11, 2021

Sorry, problaby the same as #159

@hadley hadley closed this as completed Feb 11, 2021
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