Skip to content

Problem with options(readr.show_col_types = FALSE) #1250

Description

@lukeholman

Hi there,

The option options(readr.show_col_types = FALSE) does not currently work for me, as shown below. When I pass show_col_types = FALSE directly to read_csv(), it works fine. Session info below.

> library(readr)
> options(readr.show_col_types = FALSE)
> read_csv("data/my_dat.csv")
Rows: 165928 Columns: 7                                                                                                                                                               
── Column specification ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Delimiter: ","
chr (5): Trait, Sex, Trait guild, Trait description, Reference
dbl (2): line, trait_valueUse `spec()` to retrieve the full column specification for this data.Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 165,928 x 7
  SNIPPED DATA
# … with 165,918 more rows
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

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

other attached packages:
[1] readr_2.0.0     workflowr_1.6.2

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4.6     rstudioapi_0.11  knitr_1.32       magrittr_2.0.1   hms_0.5.3        tidyselect_1.1.0 bit_1.1-15.2     R6_2.4.1        
 [9] rlang_0.4.6      fansi_0.4.1      tools_4.0.3      parallel_4.0.3   vroom_1.5.3      xfun_0.22        utf8_1.1.4       cli_2.0.2       
[17] withr_2.2.0      htmltools_0.5.0  ellipsis_0.3.1   assertthat_0.2.1 bit64_0.9-7      yaml_2.2.1       digest_0.6.25    tibble_3.0.1    
[25] lifecycle_0.2.0  crayon_1.3.4     purrr_0.3.4      later_1.0.0      tzdb_0.1.2       vctrs_0.3.0      promises_1.1.0   fs_1.4.1        
[33] glue_1.4.2       evaluate_0.14    rmarkdown_2.5    compiler_4.0.3   pillar_1.4.4     httpuv_1.5.3.1   pkgconfig_2.0.3 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions