[R] Question about Line Ending Choice

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Tue Sep 27 17:29:10 CEST 2022


Did you not see the "eol" parameter in write.table ?

Bert

On Tue, Sep 27, 2022 at 8:23 AM Stephen H. Dawson, DSL via R-help <
r-help using r-project.org> wrote:

> Hi All,
>
>
> I am writing with a question about choosing the line ending aspect of a
> file, please.
>
> I use write.csv and write.table to export work to CSV files and TXT
> files. I am planning now on how to share my work with the Windows crowd
> beyond only sharing with the Linux crowd. I use my text editor to flip
> the line ending option from Linux to Windows after exporting. This is
> inefficient for me to accomplish if I ramp up production as I expect
> will occur.
>
> Staying with the character encoding of UTF-8 seems fine for now from
> what I understand I need to deliver to my customers.
>
> What seems more efficient to me is to learn how to use R to define the
> line ending aspect of the exported file. I have not found if this is an
> option within R.
>
> QUESTION
> Is it possible within R to define the line ending aspect of file output?
>
>
> Kindest Regards,
> --
> *Stephen Dawson, DSL*
> /Executive Strategy Consultant/
> Business & Technology
> +1 (865) 804-3454
> http://www.shdawson.com
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list