is.true = function(x) {
x[is.na(x)] = FALSE
x
}
name.of.call = function(call) {
if (is.symbol(call)) {
name = as.character(call)
if (is.na(name)) return("NA")
return(name)
}
name = as.character(call[[1]])
if (name == "<-" | name == "=") {
name = as.character(call[[3]][[1]])
}
name
}
deparse1 = function(call, collapse="") {
paste0(deparse(call, width=500),collapse=collapse)
}
write.log = function(log.file,...) {
txt = paste0(..., sep="")
con = file(log.file,"at")
writeLines(txt, con)
close(con)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.