Nothing
f <- function(x) {
return(tmp <<- tmp + x)
}
typeInfo(f) <-
SimultaneousTypeSpecification(
TypedSignature( x="numeric" ),
returnType = "numeric")
tmp <- 0
g =
function(x) {
checkReturnValue(.val <- tmp <<- tmp + 1, return(.val), NULL)
cat("still going\n")
}
attr(g, "TypeInfo") <- ReturnTypeSpecification("numeric")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.