read.csv fails to read a CSV file from google docs

前端 未结 3 1934
长发绾君心
长发绾君心 2021-01-06 09:05

I wish to use read.csv to read a google doc spreadsheet.

I try using the following code:

data_url <- \"http://spreadsheets0.google.com/spreadsheet         


        
3条回答
  •  礼貌的吻别
    2021-01-06 09:31

    Check the solution on http://blog.forret.com/2011/07/google-docs-infamous-moved-temporarily-error-fixed/

    So what is the solution: just add “&ndplr=1” to your URL and you will skip the authentication redirect. I’m not sure what the NDPLR parameter name stands for, let’s just call it: “Never Do Published Link Redirection“.

提交回复
热议问题