This checks that the script has a header, defines a name that matches the file path, has a copyright statement, and defines the script's purpose.

check_header(x, path)

Arguments

x

a scanned R script

path

a character containing a directory path

Value

a named list with "pass" and "reason" elements