Skip to contents

Render file from Google Drive if there have been edits

To know more about trackdown workflow and features see trackdown-package() help page.

Usage

render_file(
  file,
  gfile = NULL,
  gpath = "trackdown",
  shared_drive = NULL,
  force = FALSE,
  rm_gcomments = FALSE
)

Arguments

file

character. The path of a local .Rmd, Quarto, or .Rnw file.

gfile

character. The name of a Google Drive file (defaults to local file name).

gpath

character. (Sub)directory in My Drive or a shared drive (optional). By default files are uploaded in the folder "trackdown". To specify another folder the full path is required (e.g., "trackdown/my_folder"). Use NULL to upload directly at the root level, although it is not recommended.

shared_drive

character. The name of a Google Drive shared drive (optional).

force

logical value indicating whether to skip confirm check by user (default is FALSE).

rm_gcomments

[Experimental] logical value indicating whether or not to remove Google comments.

Value

TRUE if file from Google Drive was saved and rendered, FALSE

otherwise.