pull_from_drive.Rd
Used for pulling archived Atlantis runs into the users workspace.
pull_from_drive( localPath = here::here(), fileList, googledriveFolder, rootid = atlantisdrive::rootid )
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) |
Files are pulled to local drive
Other atlantisdrive functions:
gd_exists()
,
get_file_list()
,
list_atlantisom_files()
,
list_core_files()
,
push_to_drive()
if (FALSE) { # 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") }