I have a function in R that looks something like this:
setMethod('[', signature(x="stack"),definition=function(x,i,j,drop){ new('class', as(x, "SpatialPointsDataFrame")[i,]) })
I use it to get one element from a complex object. For the package I am creating, I need a .Rd file to document the function. I saved it as [.Rd, but somehow the CMD R check does not see this. It returns:
Undocumented S4 methods: generic '[' and siglist 'MoveStack,ANY,ANY'
The [.Rd begins with these lines:
\name{[} \alias{[} \alias{[,stack,ANY,ANY-method} \docType{methods} \title{Returns an object from a stack} \description{Returning a single object} \usage{ \S4method{\[}{stack,ANY,ANY}(x,i,y,drop) }
Any idea how I can check the r cmd of this file?
source share