tests/check.S

f = 
function(x, y = 2, z = 3)
{
  checkArgs()

  x + y + z
}  

typeInfo(f) =
  IndependentTypeSpecification(x = "numeric",
                               y = "numeric",
                               z = "numeric")

Try the TypeInfo package in your browser

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

TypeInfo documentation built on Nov. 8, 2020, 5:40 p.m.