1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
\name{package.skeleton-methods}
\docType{methods}
\alias{package.skeleton-methods}
\alias{package.skeleton,ANY,ANY-method}
\alias{package.skeleton,character,CFunc-method}
\alias{package.skeleton,character,CFuncList-method}
\title{Generate the skeleton of a package}
\description{
Generate the skeleton of a package
}
\section{Methods}{
\describe{
\item{\code{signature(name = "ANY", list = "ANY")}}{
Standard method. See \code{\link[utils]{package.skeleton}}
}
\item{\code{signature(name = "character", list = "CFunc")}}{
Method for a single generated by \code{\link{cfunction}}
or \code{\link{cxxfunction}}
}
\item{\code{signature(name = "character", list = "CFuncList")}}{
Method for a set functions generated by \code{\link{cfunction}}
or \code{\link{cxxfunction}}
}
}}
\examples{
\dontrun{
fx <- cxxfunction( signature(x = "integer", y = "numeric" ) , '
return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
' )
package.skeleton( "foo", fx )
functions <- cxxfunction(
list(
ff = signature(),
gg = signature( x = "integer", y = "numeric" )
),
c( "return R_NilValue ;", "return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;")
)
package.skeleton( "foobar", functions )
}
}
\keyword{methods}
|