-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't save files in location #10
Comments
Will have a look at this! |
Ok, it seems that you might be trying to copy form a non encrypted temporary folder to an encrypted home folder as suggested here. Could this be correct in your case? |
Ok, found that this might be a bug. Probably not on most systems but certainly on some. So although it will generate overhead the cautionary thing would be to use file.copy(), as file.rename() will not always work. Actually, better to trap the error with Thanks for flagging this! |
I don't think is encrypted (I followed this) but my home is in another partition from / . So that must be the issue. Would it be possible to download directly in the target file? |
Yes, there is. Basically CRAN rules in general are that you are not allowed to write by default to any user space. I probably did it to be on the safe side. I also fear that incomplete downloads will leave behind gunk files. Cleaning those up is always a pain. While the tempdir() gets purged upon closing a session etc. |
Here I set a temp file name Which technically could be the final destination path. But as said above, if the process breaks (time-out) or is exited due to crash / unclean exit. You are left with gunk in your "normal" spaces, not in a temporary location which gets purged from time to time. |
btw. this bug was fixed here: 9dd901e You can pull the latest github version to get your downloads into your home directory. |
I've recently found your great package and wanted to test it and got this error:
The temporary file is in in there correctly downloaded, but "file.nc" is nowhere to be found. Changing the
file.rename()
call tofile.copy()
(see here) solves the issue but considering the potentially big files, it's probably not ideal.I'm on elementaryOS 5 (based on Ubuntu 18.04)
The text was updated successfully, but these errors were encountered: