setGeneric("sizeof",
function(type, ...)
standardGeneric("sizeof"))
setMethod("sizeof", "FFIType",
function(type, ...) {
.Call("R_getFFITypeSize", type)
})
setMethod("sizeof", "StructFFIType",
function(type, ...) {
structInfo(type)$size
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.