r - Permission Denied Error when downloading a file -
i trying download excel zip file r project folder have started. i'm new r i'm little puzzled @ error message i'm receiving.
the file excel file , first created variable file:
excel2file="http://op.nsf.data/datafiles/housing2013excel.zip"
then used coding:
download.file(excel2file, destfile= "~/home/documents/data")
i receive error message:
error in download.file(excel2file, destfile = "~/home/documents/data") : cannot open destfile '~/home/documents/data', reason 'permission denied'
i tried looking @ other examples of permission denied , think may destination file not sure why or steps problem shoot it.
destfile
should filename, not directory. example:
download.file(excel2file, destfile= "~/home/documents/data/housing2013excel.zip")
also, url doesn't seem valid, that's different (non-r) problem.
r
No comments:
Post a Comment