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
When reading Excel files on a network drive without access to the underlying folder, the file is read correctly, however, a warning with the text Access is denied is generated.
This is likely due to the path being processed using normalizePath without mustwork = FALSE , and it is documented that normalizePath may throw these errors when it cannot access the underlying directories, even when the path is valid and the user has access to the file.
setwd("\\\\some/network/path")
openxlsx::write.xlsx(data.frame(a=1), "example.xlsx")
readxl::read_xlsx("example.xlsx")
#> Warning in normalizePath(path.expand(path), winslash, mustWork):#> path[1]="example.xlsx": Access is denied#> # A tibble: 1 × 1#> a#> <dbl>#> 1 1
When reading Excel files on a network drive without access to the underlying folder, the file is read correctly, however, a warning with the text Access is denied is generated.
This is likely due to the path being processed using
normalizePath
withoutmustwork = FALSE
, and it is documented thatnormalizePath
may throw these errors when it cannot access the underlying directories, even when the path is valid and the user has access to the file.Created on 2023-04-20 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: