fmmattioni / downloadthis

Implement Download Buttons in rmarkdown 💾
https://fmmattioni.github.io/downloadthis/
Other
147 stars 5 forks source link

decimal points are converted to comma : when downloaded by CSV #22

Closed jsaang closed 2 years ago

jsaang commented 2 years ago
스크린샷 2022-02-04 오후 12 49 52 스크린샷 2022-02-04 오후 12 50 01

Hello, I am really enjoying your fantastic pkg. And I find something weird. When I download CSV, decimal points are converted to comma.

How can I fix it? Thank You! :)

fmmattioni commented 2 years ago

Hi @jsaang,

I believe this has to do with your system settings, rather than {downloadthis}. Can you try to open another random csv file to make sure the problem still persists?

aniruhil commented 2 years ago

@fmmattioni Same issue here, on OS X Monterey. This behavior occurs with mtcars and other data sets. However, csv looks as expected if you export to csv with readr

jsaang commented 2 years ago

@fmmattioni When I just open another csv file, It is okay. But CSV file downloaded by {downloadthis} have comma issue. :(

fmmattioni commented 2 years ago

@aniruhil @jsaang I see.. you can then set the argument csv2 = FALSE and it should work