R/wrangling_dataset_issues.R
, R/wrangling_dataset_labels.R
, R/wrangling_dataset_milestones.R
write.Rd
Save datasets in a yaml file
write_issues_to_dataset(issues, ...)
# S3 method for class 'IssuesTB'
write_issues_to_dataset(
issues,
dataset_dir = getOption("IssueTrackeR.dataset.dir"),
dataset_name = "list_issues.yaml",
verbose = TRUE,
...
)
# Default S3 method
write_issues_to_dataset(issues, ...)
write_labels_to_dataset(
labels,
dataset_dir = getOption("IssueTrackeR.dataset.dir"),
dataset_name = "list_labels.yaml",
verbose = TRUE
)
write_milestones_to_dataset(
milestones,
dataset_dir = getOption("IssueTrackeR.dataset.dir"),
dataset_name = "list_milestones.yaml",
verbose = TRUE
)
a IssuesTB
object.
Unused parameter.
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
.
A character string specifying the name of the datasets
which will be written (only taken into account if source
is set to
"local"
).
Defaults to "open_issues.yaml"
.
A logical value indicating whether to print additional
information. Default is TRUE
.
a list representing all labels with simpler structure (with name, description, colour)
a list representing milestones with simpler structure (with title, description and due_on).
invisibly (with invisible()
) TRUE
if the export was
successful and an error otherwise.
Depending on the object, the defaults value of the argument
dataset_name
is:
"list_issues.yaml"
for issues;
"list_labels.yaml"
for labels;
"list_milestones.yaml"
for milestones.
# \donttest{
all_issues <- get_issues(source = "online", verbose = FALSE)
write_issues_to_dataset(all_issues)
#> The datasets will be exported to /tmp/RtmpFk7oC2/data/list_issues.yaml.
labels <- get_labels(source = "online")
#> Reading labels... Done!
#> 8 labels found.
write_labels_to_dataset(labels)
#> The datasets will be exported to /tmp/RtmpFk7oC2/data/list_labels.yaml.
#> The file already exists and will be overwritten.
milestones <- get_milestones(source = "online")
#> Reading milestones...
#> Done! 0 milestones found.
write_milestones_to_dataset(milestones)
#> The datasets will be exported to /tmp/RtmpFk7oC2/data/list_milestones.yaml.
#> The file already exists and will be overwritten.
# }