Closed moodymudskipper closed 4 years ago
This might be bug in Roxygen actually, but not sure. I remember that for infixer
I had to adjust the usage in the docs manually for them to pass CMD check.
It seems like we can define the usage manually as described in this answer : https://stackoverflow.com/questions/13322021/assignment-function-documentation-fails-r-cmd-check
Examples given :
#' Assign sp feature IDs
#' @rdname IDs
#' @usage IDs(x) <- value
"IDs<-" <- function( x, value ) {
UseMethod("IDs<-",x)
}
#' @method IDs<- SpatialPolygonsDataFrame
#' @S3method IDs<- SpatialPolygonsDataFrame
#' @rdname IDs
#' @usage IDs(x) <- value
"IDs<-.SpatialPolygonsDataFrame" <- function( x, value) {
spChFIDs(x,value)
}
Untested yet
Maybe that's what you meant, but I didn't know @usage and thought first you had edited the doc files manually.
solved by explicit @usage
definitions, escaping the \%
.
https://github.com/moodymudskipper/rangeops/commit/f4940844eba811aa8b008c7633af6e2896b71ac3
https://github.com/moodymudskipper/rangeops/commit/50502be958b6ec9f7f2f7ee08ad78c093de413b1
CMD check now succeeds
Nice!
It detects invalid syntax such as
>=(e1, e2) <- value
.