You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the "Desktop" is migrated to this location as part of the transition to Windows 10.
Reading and writing files seems to work, however, testing for read access via file.access() does not work as expected. This is likely to only be a problem when input raster data are stored on a share with UNC path.
The affected code is:
accessible.inputs<- file.access(as.character(unlist(raster.list)), mode=4) +1#file.access returns 0 for success and -1 for failureif(any( accessible.inputs==0 )) {
unreadable.files<- names(which(accessible.inputs==0))
stop(paste0("The following input files either do not exist or are unreadable: \n", paste0(unreadable.files, collapse=", ")))
}
A reasonable solution is to test for an existing file (mode=0) as that seems to work.
The text was updated successfully, but these errors were encountered:
This is a more general problem with
file.access()
and UNC paths:It seems that the "Desktop" is migrated to this location as part of the transition to Windows 10.
Reading and writing files seems to work, however, testing for read access via
file.access()
does not work as expected. This is likely to only be a problem when input raster data are stored on a share with UNC path.The affected code is:
A reasonable solution is to test for an existing file (
mode=0
) as that seems to work.The text was updated successfully, but these errors were encountered: