fetchGoogle(URL, key = NULL)
read.csv()
function, although able to read URLs
pointing to a file, cannot handle the protocol needed to talk to services such
as Google Docs. fetchGoogle()
allows you to do this.
fetchGoogle()
derives its functionality from the RCurl package,
which must be installed for the function to work. RCurl will be loaded
automatically if it is installed.
Generating the URL from the web service will, of course, depend on
how that service is set up. For Google Spreadsheets, you, the owner of a
spreadsheet, can
(1) open the spreadsheet in a browser
(2) select the File/Publish to the Web menu item
(3) in the resulting dialog box, press "Start publishing"
(4) under "Get a link to the published data", select CSV format
(5) copy the https://docs.google.com/spreadsheet/pub?...
link and post
it where your users can get to it.s = fetchGoogle(key="0Am13enSalO74dEVzMGJSMU5TbTc2eWlWakppQlpjcGc")
Run the code above in your browser using DataLab