drive_new_from_template: drive_new_from_template()

View source: R/drive_new_from_template.R

drive_new_from_templateR Documentation

drive_new_from_template()

Description

Create a new Galactic Polymath Google Drive file from a template file.

Usage

drive_new_from_template(
  template_path = NULL,
  dest_path = NULL,
  new_name = FALSE,
  new_name_gsub = NULL,
  exact_match = TRUE,
  WD = NULL,
  drive_root = NULL,
  overwrite = NA,
  ...
)

Arguments

template_path

i.e. the FROM path; a text string of a path to a template to pass to drive_find_path()

dest_path

i.e. the TO path; text string of a path where you want to file to go

new_name

text string(s) of what you'd like to name your new file. default=FALSE maintains the original name; NULL results in "Copy of FILENAME"; passed to googledrive::drive_cp(); If a single name is provided, it will be recycled

new_name_gsub

alternate name specification (don't specify new_name if specifying new_name_gsub); default= NULL

exact_match

passed to drive_find_path()

WD

passed to drive_find_path()

drive_root

passed to drive_find_path()

overwrite

Do you want to overwrite an existing file? default=NA means overwrite. Other options T or F are very inefficient; passed to googledrive::drive_cp()

...

pass other arguments to Google Drive API (see googledrive::drive_cp())

Details

If you're wanting to copy meta/ google sheets, check out init_lesson_meta()

See Also

Other Google Drive Functions: drive_contents(), drive_copy_missing_files(), drive_cp_dir(), drive_find_path(), drive_get_info(), drive_inSync(), drive_open(), init_lesson_meta(), update_teach_links()


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.