Update the different local database (issues, labels and milestones) with the online reference.
A SelectorTB object (to define the range of the repo /
source used). Created with init_selector().
The destination directory where the YAML file will be
saved. By default, the system's temporary directory is used (tempdir()).
The name of the output file (without extension).
By default, the name is "object.yaml".
A boolean indicating whether to print additional
information. Default is TRUE.
Additional arguments for connecting to the GitLab.
(See the documentation of get to have more
information on theses parameters)
invisibly (with invisible()) TRUE.
# \donttest{
jdemetra_selector <- init_selector(
source = "GitHub",
owner = "jdemetra",
repo = "jdplus-revisions",
state = "all"
)
update_database(
selector = jdemetra_selector,
dataset_dir = tempdir()
)
#> Repo: jdplus-revisions owner: jdemetra
#> The datasets will be exported to /tmp/Rtmpn2rju7/list_issues_bkyok.yaml.
#> Repo: jdplus-revisions owner: jdemetra
#> Reading labels... Done!
#> 12 labels found.
#> The datasets will be exported to /tmp/Rtmpn2rju7/list_labels_bkyok.yaml.
#> Repo: jdplus-revisions owner: jdemetra
#> Reading milestones...
#> Done! 0 milestones found.
#> The datasets will be exported to /tmp/Rtmpn2rju7/list_milestones_bkyok.yaml.
# }