Skip to content

Error in Cellranger: rows[1] <= rows[2] is not TRUE`  #175

@devu123

Description

@devu123

I've been able to reproduce an error in cellranger, when reading a worksheet:

reading from a test sheet :
https://docs.google.com/spreadsheets/d/1WbIrT7NtMUvqQ4FR6IX5ZdkNDLBISF9IHSbzNqlBNPU/edit#gid=1898788512

here is my code:

require(googlesheets4)

ss = as_sheets_id("https://docs.google.com/spreadsheets/d/1WbIrT7NtMUvqQ4FR6IX5ZdkNDLBISF9IHSbzNqlBNPU/edit#gid=1898788512")
currentSheet <- data.frame(read_sheet(ss,
                                       sheet = 'test', .name_repair = 'minimal'), stringsAsFactors = F)

i get the error:Error in cellranger::cell_limits(ul = c(start_row, start_column), lr = c(end_row, : rows[1] <= rows[2] is not TRUE

when I remove the row with the filters on top of the sheet, I no longer get this error. curious to understand why.

my sessionInfo:

Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)

Matrix products: default

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

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

other attached packages:
[1] googlesheets4_0.2.0

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.2        compiler_3.6.0    cellranger_1.1.0  pillar_1.4.1      prettyunits_1.0.2
 [6] remotes_2.1.0     tools_3.6.0       testthat_2.3.2    digest_0.6.20     pkgbuild_1.0.3   
[11] pkgload_1.0.2     jsonlite_1.7.0    googledrive_1.0.1 memoise_1.1.0     tibble_2.1.3     
[16] lifecycle_0.1.0   gargle_0.5.0.9000 pkgconfig_2.0.2   rlang_0.4.6       cli_1.1.0        
[21] rstudioapi_0.10   curl_4.3          httr_1.4.1        withr_2.2.0       dplyr_0.8.1      
[26] askpass_1.1       desc_1.2.0        fs_1.4.2          vctrs_0.3.1       devtools_2.0.2   
[31] rprojroot_1.3-2   tidyselect_0.2.5  glue_1.4.1        R6_2.4.1          processx_3.3.1   
[36] sessioninfo_1.1.1 callr_3.2.0       purrr_0.3.4       magrittr_1.5      backports_1.1.4  
[41] ps_1.3.0          usethis_1.5.0     assertthat_0.2.1  openssl_1.4.2     crayon_1.3.4   ```

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