multilist_to_tibble {gitlabr}R Documentation

Modify a multilist from API JSON output to a level 1 tibble

Description

Modify a multilist from API JSON output to a level 1 tibble

Usage

multilist_to_tibble(the_list)

Arguments

the_list

list of element as issued from a API REST call

Value

a tibble with columns as the names of the list

Examples

reprex <- list(
  list(a = 1, b = list("email1", "email2", "email3"), c = list("3")),
  list(a = 5, b = list("email1"), c = list("4")),
  list(a = 3, b = NULL, c = list("3", "2"))
)

multilist_to_tibble(reprex)

[Package gitlabr version 2.1.0 Index]