我想使用此函数构建R
包(RStudio
):
#' hex2rgb
#'
#' Give RGB color code from HEX color code
#'
#' @param color.vector RGB channels datas from PictureResults
#' @return results , the name of the matrix
#' @examples
#' # RGB color code of "Alice Blue" color:
#' hex2rgb("#f0f8ff")
#' # RGB color code of "Red" color:
#' hex2rgb("#ff0000")
#' @export
hex2rgb <- function(color.vector) {code}
该套餐运作良好,但是当我建立&amp;重新加载,“帮助”部分中的@param
和其他@
正在放入Details
小节,并且所有内容都是这样的:
@param color.vector RGB通道来自PictureResults @return resultat的数据,矩阵的名称@examples #RGB颜色代码&#34; Alice Blue&#34;颜色:hex2rgb(&#34;#f0f8ff&#34;)#RGB颜色代码&#34;红色&#34; color:hex2rgb(&#34;#ff0000&#34;)@export
我之前吃过午餐devtools
和roxygen2
,我的R版本是R.3.3.2
。
问题的根源是什么?