View source: R/network_access.R
| network.access | R Documentation |
Validates whether a path is a network (UNC) path and whether it is accessible.
network.access(path)
path |
Character string. Network path to validate. |
A list of class network_access_result containing:
path - Input path
network_path - TRUE/FALSE
server - Server name extracted from UNC path
share - Share name extracted from UNC path
accessible - TRUE/FALSE
status - Overall status message
# A local path is not a network path
result <- network.access(tempdir())
print(result)
# Parse a UNC path structure (no network needed — just parsing)
result <- network.access("//myserver/myshare/data")
print(result)
# Real UNC network path (requires actual network access)
network.access("//server/share/data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.