# R package warrning description missing.

Building a very simple package on RStudio. I have a function that adds 2 to any given number. When I run "check package" from "build" tab, I am getting "argument items with no description" - what is missing?

Here is the content in the add_2.R file

# Add plus 2 to a number

#'
#' @param x is number
#' @description x is an intiger
#' @return a number object
#' @export
#'
#' @examples
add_2 <- function(x) { x + 2}


% Generated by roxygen2: do not edit by hand
\usage{
}
\arguments{
\item{x}{is number}
}
\value{
a number object
}
\description{
x is an intiger
}
\examples{
}



Here is what is rendered.

So, not sure this is the issue, but description should not be used for describing parameters, it is a short description of what the function does. So the .R file should rather be

#' @title Add plus 2 to a number (or #' Add plus 2 to a number, roxygen2 will guess it's the title)
#'
#'
#' @param x A number (integer)
#' @return a number object
#' @export
#'
#' @examples


Thanks for responding @maelle. Still get the warning after updating with your recommendation.

W  checking Rd contents ...
Argument items with no description in Rd object 'add_2':
‘x’


and

0 errors ✓ | 1 warning x | 0 notes ✓
Error: R CMD check found WARNINGs
Execution halted

Exited with status 1.


Have you run document()? If I add the .R below in a package and then run document(), I get no R CMD check problems.

#' @title Add plus 2 to a number (or #' Add plus 2 to a number, roxygen2 will guess it's the title)
#'
#'
#' @param x A number (integer)
#' @return a number object
#' @export
#'
#' @examples