Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write .ods openoffice / libreoffice files in R

Tags:

r

There are many ways to read .ods packages in R, e.g. with gnumeric packages. But I can't find any way to write an .ods file directly. Any ideas?

(This would be particularly useful because google drive spreadsheets appear as .ods files locally, so it would be a way to edit google spreadsheets without using solutions like RGoogleDocs which won't work offline.)

like image 962
Steve Powell Avatar asked Sep 22 '14 08:09

Steve Powell


1 Answers

This question is old. I am just filling it in so that it will not be unanswered. There may have been no solution when the question was written. At this time, the package readODS has a function write_ods that will write an ods file. Quick example:

library(readODS)
write_ods(iris, "iris.ods")
like image 82
G5W Avatar answered Nov 04 '22 12:11

G5W