【发布时间】:2017-03-25 13:48:55
【问题描述】:
我想尝试在 .Rd 文件中使用降价。 我想我在一个函数的文档末尾得到了@md,它可以解析降价。但是看不到这个表出现,也没有出现原始文本... roxygen 支持表吗?
#' makes bar
#' @description
#' prints 2 x
#' @details see this table
#'
#' |a |b |c |
#' |--|--|--|
#' |1 |3 |4 |
#'
#' @param x how much foo
#' @return -
#' @export
#' @family tmp
#' @examples
#' foo(2)
#' @md
foo <- function(x) {
print(2 * x)
}
【问题讨论】:
-
它使用 commonmark,我在他们的规范中看不到任何关于表格的信息:spec.commonmark.org/0.27