2

パッケージをビルドすると、このエラーが発生します。このエラーを回避するための手順を教えてください。

#' Square a number
#' 
#' Takes in any numeric value and squares it
#' @param x A value to be squared
#' @return The square of the input
#' @export
#' @example 
square <- function(x)
{
  return(x^2)
}

ビルドを押したときのエラーは次のとおりです。

==> roxygenize('.', roclets=c('rd', 'collate', 'namespace'))

* checking for changes ... ERROR

Error : example requires a value
4

1 に答える 1