hasReturnType(SimultaneousTypeSpecification(
TypedSignature(x="integer", returnType = "duncan")))
# FALSE
hasReturnType(SimultaneousTypeSpecification(TypedSignature(x="integer")))
# TRUE
hasReturnType(SimultaneousTypeSpecification(returnType = "duncan"))
# TRUE
hasReturnType(ReturnTypeSpecification("duncan"))
hasReturnType(IndependentTypeSpecification(x = c("integer", "logical"),
y = "character",
returnType = "duncan"))
hasReturnType(IndependentTypeSpecification(x = c("integer", "logical"),
y = "character"))
Run the code above in your browser using DataLab