Nothing
log_to <- function(f, path = '.log') {
function(...) {
lcon <- file(path, "w")
on.exit(close(lcon))
fval <- f(...)
cat(fval, '\n', file = lcon)
fval
}
}
#. log_to(path = '.log.whoops')
whoops <- function(x, ) {
if (!y) return('why not?')
'Did I miss something?'
}
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.