我尝试了
download.file('https://www.dropbox.com/s/r3asyvybozbizrm/Himalayas.jpg',
destfile="1.jpg",
method="auto")
但它返回该页面的HTML源代码。同时也尝试了一些rdrop。
library(rdrop2)
# please put in your key/secret
drop_auth(new_usesr = FALSE, key=key, secret=secret, cache=T)
弹出的网站报告如下:
Invalid redirect_uri: "http://localhost:1410": It must exactly match one of the redirect URIs you've pre-configured for your app (including the path).
我不是很理解URI的概念。请问有没有相关的文档可以推荐一下呢?我看了一些帖子,但大多数都是关于如何从Excel文件中读取数据的。repmis仅适用于读取Excel文件...
library(repmis)
repmis::source_DropboxData("test.csv",
"tcppj30pkluf5ko",
sep = ",",
header = F)
也尝试过
library(RCurl)
url='https://www.dropbox.com/s/tcppj30pkluf5ko/test.csv'
x = getURL(url)
read.csv(textConnection(x))
它没有起作用...
感谢任何帮助和讨论。谢谢!