Show the items in a CoMMa specification per section

show_items_per_section(
  x,
  mapping = NULL,
  output = "console",
  specific_to_generic = TRUE
)

Arguments

x

The matrix map

mapping

The mapping

output

Format of output; either "console", "markdown", or "html".

specific_to_generic

Whether to map from specific to generic (TRUE) or from generic to specific (FALSE)

Examples

### Initialize an example matrix map
initialized_genSysRev_v1 <-
  comma::CoMMaSpec_load(
    "genSysRev_v1"
  );

### Show the contributions
comma::show_items_per_section(
  initialized_genSysRev_v1
);
#> Error in comma::show_items_per_section(initialized_genSysRev_v1): As argument `x`, you have to pass a {comma} contributors table as imported with `comma::import_contributorsTable()` or as created with `comma::map_contributions()`. However, you passed an object of class 'comma', 'comma_matrixMap' & 'list'.