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

Observing new "Unrecognized file format" message for externally provided import methods #195

Closed
trevorld opened this Issue Dec 7, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@trevorld
Copy link
Contributor

trevorld commented Dec 7, 2018

Unlike with earlier versions of rio I now observe an annoying message Unrecognized file format. Try specifying with the format argument when I use rio::import with import methods defined in external packages . The message does not get suppressed when I specify the format argument as suggested. However in either case import does still successfully import the data in the file as a data frame (implicitly converting it from a tibble to a data.frame?) but now it also emits an annoying unhelpful message.

## load package
> library("rio")
> library("ledger")
> example_ledger_file <- system.file("extdata", "example.ledger", package = "ledger") 
> df <- rio::import(example_ledger_file)
Unrecognized file format. Try specifying with the format argument.
> df2 <- rio::import(example_ledger_file, format="ledger")
Unrecognized file format. Try specifying with the format argument.

## session info for your system
> sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.1 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] rio_0.5.16     bindrcpp_0.2.2 ledger_2.0.0-1 tidyr_0.8.2    ggplot2_3.1.0 
[6] dplyr_0.7.8    usethis_1.4.0  devtools_2.0.1

loaded via a namespace (and not attached):
 [1] zip_1.0.0         Rcpp_1.0.0        cellranger_1.1.0  compiler_3.4.4   
 [5] pillar_1.3.0      plyr_1.8.4        bindr_0.1.1       forcats_0.3.0    
 [9] prettyunits_1.0.2 base64enc_0.1-3   remotes_2.0.2     tools_3.4.4      
[13] testthat_2.0.1    digest_0.6.18     pkgbuild_1.0.2    pkgload_1.0.2    
[17] memoise_1.1.0     tibble_1.4.2      gtable_0.2.0      debugme_1.1.0    
[21] pkgconfig_2.0.2   rlang_0.3.0.1     openxlsx_4.1.0    cli_1.0.1        
[25] curl_3.2          haven_1.1.2       withr_2.1.2       hms_0.4.2        
[29] rappdirs_0.3.1    desc_1.2.0        fs_1.2.6          rprojroot_1.3-2  
[33] grid_3.4.4        tidyselect_0.2.5  data.table_1.11.4 glue_1.3.0       
[37] R6_2.3.0          processx_3.2.0    readxl_1.1.0      foreign_0.8-71   
[41] sessioninfo_1.1.1 callr_3.0.0       purrr_0.2.5       magrittr_1.5     
[45] backports_1.1.2   scales_1.0.0      ps_1.2.1          assertthat_0.2.0 
[49] colorspace_1.3-2  lazyeval_0.2.1    munsell_0.5.0     crayon_1.3.4   

@leeper leeper added the bug label Dec 8, 2018

@leeper leeper added this to the v0.6 milestone Feb 26, 2019

@leeper leeper closed this in fee0d41 Feb 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment