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)
eddelbuettel/littler documentation built on March 27, 2024, 12:15 p.m.