diff --git a/R/parser.R b/R/parser.R index 4c8a074226..aae830ea85 100644 --- a/R/parser.R +++ b/R/parser.R @@ -310,7 +310,7 @@ partition_chunk = function(engine, code) { } # normalize field name 'id' to 'label' if provided - meta$label = unlist(meta[c('label', 'id')])[1] + meta$label = unlist(meta[c('label', 'id')])[[1]] meta$id = NULL # convert any option with fig- into fig. and out- to out. names(meta) = sub('^(fig|out)-', '\\1.', names(meta))