-
Notifications
You must be signed in to change notification settings - Fork 44
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
Issue with digest
function with files on network drive
#13
Comments
Methinks that is an OS issue. We do nothing but opening and reading / writiing files. We don't even know whether the file is local or not. So in brief if this fails you may just have to work on a local file and (as needed) move it. The help page for |
Thanks for the quick response. As you suggest, I'll sort this out on my end. |
I have the same problem... Seems Windows related: if I call the windows method _access directly I get the same result:
|
Still don't think this is my issue. "Doctor it hurts when I do this ..." -- just don't place the to-be-digested files on a network drive if the OS does not fully support it. |
Unfortunately, there are circumstances in which it is impossible (or strongly discouraged) to move or copy the data from the network drive (ie, when working with sensible data). content <- readBin(p, n = 1000000, what="raw")
md5 <- digest::digest(content, serialize = FALSE, algo = "md5") edit: solution improved |
I'm getting an error running the
digest()
function on a file stored on a network drive from a Windows computer while no error occurs on the same file from the local drive.So the following works perfectly and C is a local drive:
With an identical file moved to a network drive I get an error:
This is causing problems with the
deployApp()
function in Shiny and thedocument()
function in devtools but report digest errors. I reported this to RStudio (thinking it was a Shiny issue).It seems this may be due to the
file.access
function used bydigest
. The code:returns a 0 (success) using the local path and a -1 (failure) with the network path.
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
digest_0.6.4
The text was updated successfully, but these errors were encountered: