moj-analytical-services / s3tools

Interact with files in s3 on the Analytical Platform
8 stars 2 forks source link

write.csv() unable to write without dataframe column/row names #37

Closed MandarinDuck closed 5 years ago

MandarinDuck commented 5 years ago

https://github.com/moj-analytical-services/s3tools/blob/18c4f2a6a7381824b0b683e0ae70959abda97867/R/write_to_s3.R#L14

MandarinDuck commented 5 years ago

If the line is replaced with write.table(df, rc, sep= ",", ...), that ought to do it.

MandarinDuck commented 5 years ago

But making it more general and allowing users to optionally pass a separator argument would be better (although the function name would then be misleading).

calumabarnett commented 5 years ago

Implemented new write_df_to_table_in_s3 function in 7297ee8.