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

drive_ls returns error due to "colonnade" being deprecated #438

Open
nvalueanalytics opened this issue Jul 17, 2023 · 1 comment
Open

drive_ls returns error due to "colonnade" being deprecated #438

nvalueanalytics opened this issue Jul 17, 2023 · 1 comment

Comments

@nvalueanalytics
Copy link

nvalueanalytics commented Jul 17, 2023

I started experiencing this since updating from R 4.0 to 4.3

`> drive_ls(path = "leni/")

Auto-refreshing stale OAuth token.
Error:
! colonnade() was deprecated in pillar 1.9.0 and is now defunct.
ℹ Please use tbl_format_setup() instead.

rlang::last_trace()
<error/lifecycle_error_deprecated>
Error:
! colonnade() was deprecated in pillar 1.9.0 and is now defunct.
ℹ Please use tbl_format_setup() instead.


Backtrace:

  1. ├─base (local) <fn>(x)
  2. └─tibble:::print.tbl(x)
  3. ├─cli::cat_line(format(x, ..., n = n, width = width, n_extra = n_extra))
  4. │ └─base::paste0(..., collapse = "\n")
  5. ├─base::format(x, ..., n = n, width = width, n_extra = n_extra)
  6. └─tibble:::format.tbl(x, ..., n = n, width = width, n_extra = n_extra)
  7. └─tibble::trunc_mat(x, n = n, width = width, n_extra = n_extra)
    
  8.   └─tibble:::shrink_mat(df, rows, n, star = has_rownames(x))
    
  9.     └─pillar::colonnade(df, has_row_id = if (star) "*" else TRUE)
    
  10.       └─lifecycle::deprecate_stop("1.9.0", "pillar::colonnade()", "pillar::tbl_format_setup()")
    
  11.         └─lifecycle:::deprecate_stop0(msg)`
    
@jennybc
Copy link
Member

jennybc commented Jul 17, 2023

I can't replicate this problem. My first suspicion is a package version problem. Below, in the session info, you can expand and see my package versions and I suspect you'll see one or more differences with your package versions.

library(googledrive)
drive_ls()
#> # A dribble: 30 × 3
#>    name                       id                                drive_resource
#>    <chr>                      <drv_id>                          <list>        
#>  1 2021-09-16_r_logo.jpg      1dandXB0QZpjeGQq_56wTXKNwaqgsOa9D <named list>  
#>  2 2021-09-16_r_about.html    1XfCI_orH4oNUZh06C4w6vXtno-BT_zmZ <named list>  
#>  3 2021-09-16_imdb_latin1.csv 163YPvqYmGuqQiEwEFLg2s1URq4EnpkBw <named list>  
#>  4 2021-09-16_chicken.txt     1axJz8GSmecSnaYBx0Sb3Gb-SXVaTzKw7 <named list>  
#>  5 2021-09-16_chicken.pdf     14Hd6_VQAeEgcwBBJamc-FUlnXhp117T2 <named list>  
#>  6 2021-09-16_chicken.jpg     1aslW1T-B8UKzAEotDWpmRFaMyMux5-it <named list>  
#>  7 2021-09-16_chicken.csv     1Mj--zJYZJSMKsNVjk2tYFef5LnCsNoDT <named list>  
#>  8 pqr                        143iq-CswFTwJTjVfKkcFMDW0jYqDeUj2 <named list>  
#>  9 mno                        1gcUTnFbsF6uioJrLCsVQ78_F1wEzyNtI <named list>  
#> 10 jkl                        17T40phn99w0hY-B_Ev0deTvVg9fmUSnt <named list>  
#> # ℹ 20 more rows

Created on 2023-07-17 with reprex v2.0.2.9000

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.3.1 (2023-06-16)
#>  os       macOS Ventura 13.4.1
#>  system   aarch64, darwin20
#>  ui       X11
#>  language (EN)
#>  collate  en_US.UTF-8
#>  ctype    en_US.UTF-8
#>  tz       America/Vancouver
#>  date     2023-07-17
#>  pandoc   3.1.1 @ /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version    date (UTC) lib source
#>  askpass       1.1        2019-01-13 [1] CRAN (R 4.3.0)
#>  cli           3.6.1      2023-03-23 [1] CRAN (R 4.3.0)
#>  curl          5.0.1      2023-06-07 [1] CRAN (R 4.3.0)
#>  digest        0.6.33     2023-07-07 [1] CRAN (R 4.3.1)
#>  dplyr         1.1.2      2023-04-20 [1] CRAN (R 4.3.0)
#>  evaluate      0.21       2023-05-05 [1] CRAN (R 4.3.0)
#>  fansi         1.0.4      2023-01-22 [1] CRAN (R 4.3.0)
#>  fastmap       1.1.1      2023-02-24 [1] CRAN (R 4.3.0)
#>  fs            1.6.2      2023-04-25 [1] CRAN (R 4.3.0)
#>  gargle        1.5.1.9000 2023-07-10 [1] local
#>  generics      0.1.3      2022-07-05 [1] CRAN (R 4.3.0)
#>  glue          1.6.2      2022-02-24 [1] CRAN (R 4.3.0)
#>  googledrive * 2.1.1.9000 2023-07-04 [1] Github (tidyverse/googledrive@74a69a3)
#>  htmltools     0.5.5      2023-03-23 [1] CRAN (R 4.3.0)
#>  httr          1.4.6      2023-05-08 [1] CRAN (R 4.3.0)
#>  jsonlite      1.8.7      2023-06-29 [1] CRAN (R 4.3.0)
#>  knitr         1.43       2023-05-25 [1] CRAN (R 4.3.0)
#>  lifecycle     1.0.3      2022-10-07 [1] CRAN (R 4.3.0)
#>  magrittr      2.0.3      2022-03-30 [1] CRAN (R 4.3.0)
#>  openssl       2.0.6      2023-03-09 [1] CRAN (R 4.3.0)
#>  pillar        1.9.0      2023-03-22 [1] CRAN (R 4.3.0)
#>  pkgconfig     2.0.3      2019-09-22 [1] CRAN (R 4.3.0)
#>  purrr         1.0.1      2023-01-10 [1] CRAN (R 4.3.0)
#>  R.cache       0.16.0     2022-07-21 [1] CRAN (R 4.3.0)
#>  R.methodsS3   1.8.2      2022-06-13 [1] CRAN (R 4.3.0)
#>  R.oo          1.25.0     2022-06-12 [1] CRAN (R 4.3.0)
#>  R.utils       2.12.2     2022-11-11 [1] CRAN (R 4.3.0)
#>  R6            2.5.1      2021-08-19 [1] CRAN (R 4.3.0)
#>  reprex        2.0.2.9000 2023-07-04 [1] Github (tidyverse/reprex@b904f73)
#>  rlang         1.1.1      2023-04-28 [1] CRAN (R 4.3.0)
#>  rmarkdown     2.23       2023-07-01 [1] CRAN (R 4.3.1)
#>  rstudioapi    0.14       2022-08-22 [1] CRAN (R 4.3.0)
#>  sessioninfo   1.2.2.9000 2023-07-04 [1] Github (r-lib/sessioninfo@ec1ebd1)
#>  styler        1.10.1     2023-06-05 [1] CRAN (R 4.3.0)
#>  tibble        3.2.1      2023-03-20 [1] CRAN (R 4.3.0)
#>  tidyselect    1.2.0      2022-10-10 [1] CRAN (R 4.3.0)
#>  utf8          1.2.3      2023-01-31 [1] CRAN (R 4.3.0)
#>  vctrs         0.6.3      2023-06-14 [1] CRAN (R 4.3.0)
#>  withr         2.5.0      2022-03-03 [1] CRAN (R 4.3.0)
#>  xfun          0.39       2023-04-20 [1] CRAN (R 4.3.0)
#>  yaml          2.3.7      2023-01-23 [1] CRAN (R 4.3.0)
#> 
#>  [1] /Users/jenny/Library/R/arm64/4.3/library
#>  [2] /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────

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