inst/script-tests/dotLast.r

#!/usr/bin/env r

# function to be called at exit
.Last <- function() { cat("Really done, so bye-bye from .Last\n") }

# imagine we're doing something now...

# end, and .Last is now called
q(status=42)

Try the littler package in your browser

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

littler documentation built on March 31, 2023, 6:49 p.m.