Skip to contents

Sometimes we need to save auxiliary files to Github repo. This function allows for this.

Usage

save_aux_to_gh(
  df,
  measure,
  owner = getOption("pipfun.ghowner"),
  repo = paste0("aux_", measure),
  branch = "DEV",
  tag = branch,
  filename = measure,
  ext = "csv",
  ...
)

Arguments

df

A dataframe containing the data to be uploaded or used to update an existing file. The dataframe will be converted into a base64-encoded string before being uploaded

owner

A character string specifying the GitHub username or organization that owns the repository. Defaults to pipfun.ghowner option

repo

A character string specifying the name of the GitHub repo where the file will be uploaded or updated

branch

A character string specifying the branch of the repository where the file should be uploaded or updated. The default is DEV branch

filename

A character string specifying the name of the file to be created or updated in the GitHub repository. If not provided, it defaults to repo name

ext

A character string representing the file extension (e.g., .csv). Default is csv