write_private_file | R Documentation |
Uploads a file to the private FOKUS repository via GitLab's RESTful API (v4).
write_private_file(
path,
content,
from_file = FALSE,
overwrite = TRUE,
commit_message = "auto: update file via fokus R pkg",
branch = repo_private_default_branch,
auth_token = pal::pkg_config_val("token_repo_private"),
quiet = FALSE
)
path |
File path relative to the repository root. |
content |
File content, as a character scalar for text files, or a raw vector for binary files. Or the path to a local file as a character scalar
if |
from_file |
Whether or not |
overwrite |
Whether or not to overwrite an already existing file. |
commit_message |
Git commit message for file creation/update. |
branch |
Git branch name to upload the file to. |
auth_token |
Personal access token of a gitlab.com account with access to the private FOKUS repository. |
quiet |
Whether or not to suppress printing status output from internal processing. |
path
, invisibly.
Other data export functions:
export_easyvote_municipalities()
,
export_print_recipients()
,
export_qr_codes()
,
export_qstnr()
,
export_survey_data()
Other private FOKUS repository functions:
print_private_repo_structure()
,
read_private_file()
,
url_repo_private()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.