inst/examples/check-func-args-noargs.R

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})
halpo/lint documentation built on May 17, 2019, 2:27 p.m.