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 check. See the corresponding vignettes: https://tanguybarthelemy.github.io/IssueTrackeR/articles/selectors.html to have more information about selectors. By default getOption("IssueTrackeR.selector").

dataset_dir

Character. Path to the directory containing the YAML file. Default: value of option IssueTrackeR.dataset.dir.

dataset_name

Character. Name of the dataset. Default: value of option IssueTrackeR.dataset.name.

verbose

Boolean indicating whether to print additional information.

...

Currently not used.

Value

invisibly (with invisible()) TRUE.

Examples

# \donttest{
if (check_github_connection(verbose = FALSE)) {
    jdemetra_selector <- init_selector(
        source = "GitHub",
        owner = "jdemetra",
        repo = "jdplus-incubator",
        state = "all"
    )

    update_database(
        selector = jdemetra_selector,
        dataset_dir = tempdir()
    )
}
#> Repo: jdplus-incubator  owner: jdemetra 
#> The datasets will be exported to /tmp/RtmpSJddLH/list_issues_my_dataset.yaml.
#> Repo: jdplus-incubator  owner: jdemetra 
#> Reading labels... Done!
#> 12 labels found.
#> The datasets will be exported to /tmp/RtmpSJddLH/list_labels_my_dataset.yaml.
#> Repo: jdplus-incubator  owner: jdemetra 
#> Reading milestones... 
#> Done! 0 milestones found.
#> The datasets will be exported to /tmp/RtmpSJddLH/list_milestones_my_dataset.yaml.
# }