logf("Hello, %s!", "world")
logf("Goodbye", prefix = function() "", sep1 = "", end = "!\n")
local({
opts <- options(toscutil.logf.prefix = function() "LOG:", toscutil.logf.end = "\n")
on.exit(options(opts))
logf("Hello, %s!", "world")
})
Run the code above in your browser using DataLab