Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • This method adds a line between the out_string and the mydf writes, and also outputs the column names with quotation marks around them. Commented Oct 11, 2017 at 4:53
  • @conor Updated to remove the separators inserted by writeLines (out_string already has them) and add the quote = FALSE parameter to write.csv. I tend to use readr::write_csv for better defaults for such, but it is nice to keep it all in base R. Commented Oct 11, 2017 at 5:10
  • Thanks @alistaire, it fits what was requested now. Commented Oct 11, 2017 at 5:26