From 1c3eba149704bd6c270555f6d15d762f29213ed3 Mon Sep 17 00:00:00 2001 From: chainsawriot Date: Sun, 9 Jun 2024 14:15:45 +0200 Subject: [PATCH] Fix #430 (#431) --- NEWS.md | 8 ++- R/import_methods.R | 2 +- R/sysdata.rda | Bin 2322 -> 2349 bytes README.md | 93 ++++++++++++++++--------------- data-raw/single.json | 9 +++ tests/testthat/test_format_csv.R | 10 ++++ 6 files changed, 74 insertions(+), 48 deletions(-) diff --git a/NEWS.md b/NEWS.md index 4b3fcf7..aee7d7f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,12 @@ +# rio 1.1.1.999 (development) + +Bug fixes + +* Fix #430 Add back support for `.dat` + # rio 1.1.1 -Bus fixes +Bug fixes * Fix #425 for archive formats, the file extension of the input file is determined by the compressed file (like prior rio 1.1.0) diff --git a/R/import_methods.R b/R/import_methods.R index edc603f..66a0550 100644 --- a/R/import_methods.R +++ b/R/import_methods.R @@ -29,7 +29,7 @@ import_delim <- function(file, which = 1, sep = "auto", header = "auto", strings #' @export .import.rio_dat <- function(file, which = 1, ...) { - message(sprintf("Ambiguous file format ('.dat'), but attempting 'data.table::fread(\"%s\")'", file)) + message(sprintf("Ambiguous file format ('.dat'), but attempting 'data.table::fread(\"%s\")'\n", file)) import_delim(file = file, ...) } diff --git a/R/sysdata.rda b/R/sysdata.rda index c844261721a68ad5aa2b53b0e7440108ae8d6703..3007435d7b6d08ac9e9aa576621fea19273aab5a 100644 GIT binary patch literal 2349 zcmV+|3DWjLT4*^jL0KkKS}f)_^f1=B?nZYLcOz)(+NnV^hQS0Bn_1GjDyrYKs`ec(?OunXwyJ>Pf!5WPs%e? z@I=(nh-3f&000008UsKYXf#b4Dd`hK)b$33r~m)}4FCWQ00w{wH6#@_r=&47WCKQk z0MGyc0iXZ?0wqBd*rUolr9DTf>S)l-LFEkqG|!4`pl2!(F5XF-Ah5FsOeTHuFXlcDMN?*A(L4UgnvD@3RIk}&8MgV}5*K=Ugw z4h1*3no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