set_mapped_drive: Set Mapped Drive

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This function will map one or multiple network drives to letters using the command prompt - so you dont have to type or click as much Use the keyring package to set your Woods Hole network password for this work station using key_set_with_value(). Retrieve using key_get() - Never store your password in raw code

Usage

1
set_mapped_drive(..., user_name, password)

Arguments

...

a set of vectors of where each network location is a assigned to the requested letter drive i.e. a = file.path("noaa.gov","work25", "my_folder") where the filepath is formatted using the file.path function

user_name

a character vector of your Woods Hole network username

password

a character vector of your Woods Hole network password

Value

sets a network path to a drive letter in Windows

Examples

1
2
3
4
## Not run: 

set_mapped_drive(d = file.path("network_address", "home20", "dcorvi"), a = file.path("network_address", "work30", "ssb"), user_name = "dcorvi", password = "password")
set_mapped_drive(a = file.path("network_address", "work25", "ssb"), user_name = "my_username", password = "password1")

dcorvi/corvitools documentation built on Feb. 15, 2022, 12:08 a.m.