Learn R Programming

projmgr (version 0.1.2)

read_todo: Read to-do list from YAML

Description

This function reads a carefully constructed YAML file representing a to-do list (of issues). YAML is converted into an R list structure which can then be passed to post_todo() to build infrastructure for your repository.

Usage

read_todo(input)

Value

List containing plan compatible with post_plan() or post_todo()

Arguments

input

Either filepath to YAML file or character string. Assumes filepath if ends in ".yml" and assumes string otherwise.

Details

Please see the "Building Custom Plans" vignette for more details.

See Also

Other plans and todos: post_plan(), post_todo(), read_plan(), report_plan(), report_todo(), template_yaml()

Examples

Run this code
if (FALSE) {
# This example uses example file included in pkg
# You should be able to run example as-is after creating your own repo reference
file_path <- system.file("extdata", "todo.yml", package = "projmgr", mustWork = TRUE)
my_todo <- read_todo(file_path)
post_todo(ref, my_todo)
}

Run the code above in your browser using DataLab