check_rmd: Check if a File is Rmd

View source: R/check_rmd.R

check_rmdR Documentation

Check if a File is Rmd

Description

Checks if a file actually is an Rmd file.

Usage

check_rmd(fname, verbose = TRUE)

Arguments

fname

A character string. It is the name of the student submission file.

verbose

A logical value that prints messages if a non-rmd file is found.

Details

It runs three checks. First, it checks for the file extension to be Rmd or rmd or any such variant. Second, it checks for a YAML header at the beginning of file. Finally, it checks if there is at least one properly defined R chunk within the file.

Value

The function will return TRUE if all the (3) checks pass, and FALSE otherwise.

See Also

get_libraries


autoharp documentation built on April 3, 2025, 6:36 p.m.

Related to check_rmd in autoharp...