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

update_database(
  dataset_dir = getOption("IssueTrackeR.dataset.dir"),
  datasets_name = c(open = "open_issues.yaml", closed = "closed_issues.yaml", labels =
    "list_labels.yaml", milestones = "list_milestones.yaml"),
  verbose = TRUE,
  ...
)

Arguments

dataset_dir

A character string specifying the path which contains the datasets (only taken into account if source is set to "local"). Defaults to the package option IssueTrackeR.dataset.dir.

datasets_name

A named character string of length 4, specifying the names of the different datasets which will be written. The names datasets_name have to be "open", "closed", "labels" and "milestones". Defaults to c(open = "open_issues.yaml", closed = "closed_issues.yaml", labels = "list_labels.yaml", milestones = "list_milestones.yaml") .

verbose

A logical value indicating whether to print additional information. Default is TRUE.

...

Additional arguments for connecting to the GitHub repository:

  • repo A character string specifying the GitHub repository name. Defaults to the package option IssueTrackeR.repo.

  • owner A character string specifying the GitHub owner. Defaults to the package option IssueTrackeR.owner. (See the documentation of get to have more information on theses parameters):

Value

invisibly (with invisible()) TRUE.

Examples


# \donttest{
update_database()
#> The datasets will be exported to /tmp/RtmpELgOGr/data/open_issues.yaml.
#> The datasets will be exported to /tmp/RtmpELgOGr/data/closed_issues.yaml.
#> Reading labels... Done!
#> 8 labels found.
#> The datasets will be exported to /tmp/RtmpELgOGr/data/list_labels.yaml.
#> Reading milestones... 
#> Done! 0 milestones found.
#> The datasets will be exported to /tmp/RtmpELgOGr/data/list_milestones.yaml.
# }