set_network_path: Set a network path

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This will add an environment variable called SAFEPATHS_NETWORK_PATH to your .Renviron file and set the variable to the provided network path.

Usage

1

Arguments

x

character. A path to a folder on a network drive. For Mac users it will look something like "/Volumes/server_name/folder_name". For Windows users, you can use the mapped drive letter or the UNC path (e.g., "P:/folder_name" or "//UNC_path").

Value

logical (invisibly)

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Mac
set_network_path("/Volumes/server_name/folder_name")
# Windows
set_network_path("P:/folder_name") OR
set_network_path("//UNC_path")

## End(Not run)

bcgov/safepaths documentation built on Dec. 23, 2021, 10:19 p.m.