inst/Examples/showPrimTypes.R

allObjects = objects("package:base", all=TRUE)
primitives = sapply(allObjects, function(x)is.primitive(get(x)))
primFuns  = allObjects[primitives]
functionTypes <- split(primFuns,
               sapply(primFuns, function(x)typeof(get(x))))
names(functionTypes)
sapply(functionTypes, length)
functionTypes$special

Try the SoDA package in your browser

Any scripts or data that you put into this service are public.

SoDA documentation built on Oct. 28, 2020, 9:07 a.m.