Knit a contributors table

knit_contributorsTable(x, rows = NULL)

Arguments

x

The contributors table, as produced by, for example, a call to contributorsTable_from_CoMMaSpec().

rows

The number of rows to show

Value

The result of a call to knitr::kable() on the x$contributor_table object

Examples

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

### Generate a contributors table from it
contribTable <-
  comma::contributorsTable_from_CoMMaSpec(
    initialized_genSysRev_v1
  );
#> Error in comma::contributorsTable_from_CoMMaSpec(initialized_genSysRev_v1): As argument `CoMMaSpec`, you have to pass a {comma} matrix map specification as imported with `comma::CoMMaSpec_fromSpreadsheet()`. However, you passed an object of class 'comma', 'comma_matrixMap' & 'list'.

### Knit the result (note: this will show
### a Markdown table in the console):
knit_contributorsTable(
  contribTable
);
#> Error: object 'contribTable' not found