export_drivefile: Export local files for googledrive folder

View source: R/import_drivefile.R

export_drivefileR Documentation

Export local files for googledrive folder

Description

'r lifecycle::badge("experimental")'

'export_drivefile() is designed to move files googledrive'

Usage

export_drivefile(
  filename,
  to_drive,
  to_folder = NULL,
  add_folder = TRUE,
  overwrite = TRUE,
  ...
)

Arguments

filename

Character, Full name of the file to be uploaded

to_drive

Character, Google drive id

to_folder

Character, Google drive sub-folder

add_folder

Logical. If TRUE, add sub-folders if they are not present

overwrite

Logical. If yes, existing files will be overwritten

...

Additional parameters to be passed to 'googledrive::drive_upload()'

Value

Googledrive file(s) id(s)

Examples

## Not run: 
 library(glamr)

 list.files("./Graphics", "NIGERIA", full.names = TRUE) %>%
      export_drivefile(filename = .,
                       to_drive = "<path-id>",
                       to_folder = "FY99Q4/VL Suppression",
                       add_folder = TRUE)


## End(Not run)


USAID-OHA-SI/glamr documentation built on Oct. 1, 2024, 2:18 p.m.