r - read.csv fails to read a CSV file from google docs -
i wish use read.csv read google doc spreadsheet.
i try using following code:
data_url <- "http://spreadsheets0.google.com/spreadsheet/pub?hl=en&hl=en&key=0agmhdtvek_sddgi2yzy2r1zesdlmzs1vyuxvblq0ree&single=true&gid=0&output=csv" read.csv(data_url)
which results in following error:
error in file(file, "rt") : cannot open connection
i'm on windows 7. , code tried on r 2.12 , 2.13
i remember trying few months ago , worked fine. suggestion might causing or how solve it?
thanks.
i ran same problem , found solution in forum thread. using own public csv file:
library(rcurl) tt = getform("https://spreadsheets.google.com/spreadsheet/pub", hl ="en_us", key = "0aonsf4v9idjgdhrawwrfbxdqn1zvbgx0lwvcevd0t1e", output = "csv", .opts = list(followlocation = true, verbose = true, ssl.verifypeer = false)) holidays <- read.csv(textconnection(tt))
Comments
Post a Comment