function(){} # empty
function(){cat("Hello World!\\n")} # with body
function()cat("Hello World!\\n") # single line function
function()
cat("Hello World!\\n") # single line on other line
a <- function(){} # assignment
# Arguments
a <- function(){cat("Hello World!\\n", file=file)}
a <- function(){cat("Hello World!\\n", file=file)}
# Multiline arguments
a <- function(
) {
cat("Hello World!\\n", file=file)
}
# embeded
llply(1:9, function(){x ** 0.5})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.