我有一份报告可以编译两个值 - 项目和供应商。上一次kable
(1.16)迭代按预期将 vTable <- structure(list(Item = c("Item 4", "Item C", "Item_A", "Item_B",
"Item_B_raw"), Vendors = structure(list(`1` = c("Vendor 3", "Vendor_1",
"Vendor_2", "Vendor4"), `2` = c("Vendor4", "Vendor 3", "Vendor_2",
"Vendor_1", "Vendor 5."), `3` = c("Vendor 5.", "Vendor4", "Vendor_2"
), `4` = c("Vendor_1", "Vendor4", "Vendor 5."), `5` = c("Vendor_2",
"Vendor 5.", "Vendor4", "Vendor 3")), .Names = c("1", "2", "3",
"4", "5"))), .Names = c("Item", "Vendors"), row.names = c(NA,
-5L), class = "data.frame")
vtable
Item Vendors
1 Item 4 Vendor 3, Vendor_1, Vendor_2, Vendor4
2 Item C Vendor4, Vendor 3, Vendor_2, Vendor_1, Vendor 5.
3 Item_A Vendor 5., Vendor4, Vendor_2
4 Item_B Vendor_1, Vendor4, Vendor 5.
5 Item_B_raw Vendor_2, Vendor 5., Vendor4, Vendor 3
表输出到pdf和HTML文档中,但更新后的版本输出列表代码,而不是列表< EM>值。
kable(vTable)
|Item |Vendors |
|:----------|:------------------------------------------------|
|Item 4 |Vendor 3, Vendor_1, Vendor_2, Vendor4 |
|Item C |Vendor4, Vendor 3, Vendor_2, Vendor_1, Vendor 5. |
|Item_A |Vendor 5., Vendor4, Vendor_2 |
|Item_B |Vendor_1, Vendor4, Vendor 5. |
|Item_B_raw |Vendor_2, Vendor 5., Vendor4, Vendor 3 |
使用knitr_1.6,
kable(vTable)
|Item |Vendors |
|:----------|:-------------------------------------------------------------|
|Item 4 |c("Vendor 3", "Vendor_1", "Vendor_2", "Vendor4") |
|Item C |c("Vendor4", "Vendor 3", "Vendor_2", "Vendor_1", "Vendor 5.") |
|Item_A |c("Vendor 5.", "Vendor4", "Vendor_2") |
|Item_B |c("Vendor_1", "Vendor4", "Vendor 5.") |
|Item_B_raw |c("Vendor_2", "Vendor 5.", "Vendor4", "Vendor 3") |
但是当前迭代knitr_1.20的输出:
Error in pandoc_to() : could not find function "pandoc_to"
我将kable_1.6函数粘贴到r脚本中,将其移动到新硬件,将其分配给“my_kable”,但它返回x = replace_na(to_character(as.matrix(x)), is.na(x))
。我尝试直接编辑该函数,删除x = replace_na(base::format(as.matrix(x), trim = TRUE, justify = "none"), is.na(x))
并粘贴上一行@android:attr/windowBackground
以查看这是否是违规位,但仍然有pandoc_to错误。