I am trying to build a new package in R but every time I try to document the package with devtools document() function it gives me the error that it couldn't find the example. Exact error is like this:
Warning: [C:\Users\User\Desktop\RProject\ExcelFunctionsR\R\AND.R:9] @example 'C:\Users\User\Desktop\RProject\ExcelFunctionsR/AND(iris$Species == "setosa", iris$Petal.Length == 1.4)' doesn't exist
Do any of you know what this error could be. This is the function itself(Other functions return the same warning as well)
# COUNT Function from Excel
#' Basic COUNT function from excel
#'
#' It acts similiarly to Excel's COUNT function.
#'
#' @param value Count amount of the values in the range.
#' @import base
#' @import plyr
#' @export
#' @example
#' COUNT(iris$Species)
COUNT <-
function(value){
sum(count(value)[,2]) - sum(is.na(value))
}