在构建程序包时,RStudio没有分配好帮助部分

时间:2017-05-24 02:19:36

标签: r packages devtools roxygen2

我想使用此函数构建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

我之前吃过午餐devtoolsroxygen2,我的R版本是R.3.3.2

问题的根源是什么?

0 个答案:

没有答案