好的,所以这真的很傻。为什么我收到此错误? Cant R只是在工作目录中创建一个新文件?
非常感谢
> url <- "http://faculty.chicagobooth.edu/lubos.pastor/research/liq_data_1962_2013.txt"
> download.file(url, file, mode='wb')
Error in download.file(url, file, mode = "wb") :
invalid 'destfile' argument
答案 0 :(得分:1)
getwd()
url <- "http://faculty.chicagobooth.edu/lubos.pastor/research/liq_data_1962_2013.txt"
download.file(url, "file.txt" )