The command line app is fine, although there are some potential security
issues or annoyances with a smooth work flow.

But it would be more flexible and powerful to do it directly in R.
And we don't need to know or program in C. The RCurl (https, getForm() and postForm()) and XML packages provide all we need.

It took a couple of hours of reading the Google documentation,
designing and writing the R code and _testing_, but in relatively
few lines of code, the RGoogleDocs "package" enables an R user
to query, delete, download and upload documents to her Google account.
This was one of the motivations for developing the XML and RCurl packages, i.e. to be able to quickly develop utilities in R to
communicate with Web "apps".  So Ajay's suggestion was a nice
exercise to see if the packages do make it easy.

The package currently has no Rd files, but there is a brief "user's guide". The package is available from
        http://www.omegahat.org/RGoogleDocs

For binary files, you will want to grab a beta-version of RCurl
at http://www.omegahat.org/Prerelease/RCurl_0.91-0.tar.gz

 D.

Barry Rowlingson wrote:
2008/9/23 Ajay ohri <[EMAIL PROTECTED]>:

By outputting PDF directly to a Google Doc, it becomes light and portable
for people to view and collaborate on projects  in different parts of the
world.
If you extend this to Google spreadsheets this functionality is especially
useful for financial reporting or marketing metrics reports or collaborative
presentations to be made.

 There's command-line tools (written in python, but probably in other
languages elsewhere) to do this:

http://code.google.com/p/gdatacopier/

 their example is:

./gdoc-cp.py --username [EMAIL PROTECTED] --import --local
files/doc.txt --title "New Document"

 So all you need to do is call that from R with system() and wrap it
up in some R functions.

Barry

______________________________________________
R-help@r-project.org mailing list
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.

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to