Update the different local database (issues, labels and milestones) with the online reference.

update_database(
  selector = getOption("IssueTrackeR.selector"),
  dataset_dir = getOption("IssueTrackeR.dataset.dir"),
  dataset_name = getOption("IssueTrackeR.dataset.name"),
  verbose = TRUE,
  ...
)

Arguments

selector

A SelectorTB object (to define the range of the repo / source used). Created with init_selector().

dataset_dir

The destination directory where the YAML file will be saved. By default, the system's temporary directory is used (tempdir()).

dataset_name

The name of the output file (without extension). By default, the name is "object.yaml".

verbose

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)

Value

invisibly (with invisible()) TRUE.

Examples

# \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.
# }