Learn R Programming

inline (version 0.3.5)

package.skeleton-methods: Generate the skeleton of a package

Description

Generate the skeleton of a package

Arguments

Examples

Run this code
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 )

Run the code above in your browser using DataLab