tests/simple.S

g = f <- function(x) {
    x <- x^2
     return(x)
}
typeInfo(f) <-
     SimultaneousTypeSpecification( TypedSignature( x="numeric" ) )

f(1)

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.