tests/invisible.S

i =
function(n)
{
  invisible(diag(n))
}

typeInfo(i) = ReturnTypeSpecification("matrix")

h =
function(n)
{
  return(invisible(diag(n)))
}


g =
function()
{
  invisible(return(x+y))
}

# 
gg =
function()
{
  invisible(return(x))
}


 # Works.
ggg =
function()
{
  invisible(x)
}  

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.