pull_from_drive: Renames, moves output files from Google Drive to local...

Description Usage Arguments Value See Also Examples

View source: R/pull_from_drive.R

Description

Used for pulling archived Atlantis runs into the users workspace.

Usage

1
2
3
4
5
6
pull_from_drive(
  localPath = here::here(),
  fileList,
  googledriveFolder,
  rootid = atlantisdrive::rootid
)

Arguments

localPath

Character string. Path to local Atlantis output directory. Files will be pulled to this directtory. Default = here::here()

fileList

Character vector. Files name(s) that need to be pulled from Google Drive. Alternatively any character string present in file name

googledriveFolder

Character String. Name of directory on google Drive to pull.

rootid

Drive-id. Atlantis root id on google drive. (Default id for NEFSC is bundled in this package)

Value

Files are pulled to local drive

See Also

Other atlantisdrive functions: gd_exists(), get_file_list(), list_atlantisom_files(), list_core_files(), push_to_drive()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# Pulls all xml files from the Development Folder to your current working directory
pull_from_drive(fileList="xml",googledriveFolder="Development")

# Pulls all files with the string "ATLNTS-2" present in its filename to the "output" folder in your project
pull_from_drive(localPath = here::here("output"),fileList="ATLNTS-2",googledriveFolder="Development")

# Pulls selected files from the Scenario Folder
filesToPull <- c("file1.jpg","file2.txt","file3.bmg")
pull_from_drive(fileList=filesToPull,googledriveFolder="Scenario")


## End(Not run)

andybeet/atlantisdrive documentation built on April 9, 2021, 1:49 p.m.