Resolved error while uploading file
I am trying to download an excel zip file to the R project folder that I started. I am new to R, so I am a bit puzzled by the error message I receive.
The file is an excel file, so first I created a variable for the file:
excel2file="http://op.nsf.data/dataFiles/Housing2013EXCEL.zip"
Then I used the encoding:
download.file(excel2file, destfile= "~/Home/Documents/Data")
I get this error message:
Error in download.file(excel2file, destfile = "~/Home/Documents/Data") :
cannot open destfile '~/Home/Documents/Data', reason 'Permission denied'
I tried looking at other examples of access denied and I think it might be my destination file, but I'm not sure why or the steps to fix it.
+3
source to share