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

fread does not correctly recover a file with quotes saved using fwrite #4443

Closed
valentas-kurauskas opened this issue May 13, 2020 · 5 comments

Comments

@valentas-kurauskas
Copy link

> library(data.table)
> a<-data.table(a=c("\"A\""))
> a
     a
1: "A"
> fwrite(a, "a.csv")
> fread("a.csv")
       a
1: ""A""

# Output of sessionInfo()

R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

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] data.table_1.12.8

loaded via a namespace (and not attached):
[1] compiler_3.4.4 tools_3.4.4   
@MichaelChirico
Copy link
Member

Thanks for the issue report. I believe this is subsumed by #4221 and/or #3509, so I'll close this. Please re-open if you think it's a different issue.

@valentas-kurauskas
Copy link
Author

@MichaelChirico you are right, my bug is just a more minimal example of #3509.

@jangorecki
Copy link
Member

@valentas-kurauskas that is good, I put it in related issue. Thanks!

@st-pasha
Copy link
Contributor

I believe the first issue in this series is #1109

@jangorecki
Copy link
Member

I even see @valentas-kurauskas comment there from March :-)

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

No branches or pull requests

4 participants