apply_blacklist: Check for blacklisted functions

View source: R/process_rmd.R

apply_blacklistR Documentation

Check for blacklisted functions

Description

Search for, and optionally comment out any blacklisted functions that appear within an RMarkdown file

Usage

apply_blacklist(subfile, overwrite = TRUE)

Arguments

subfile

path to submission RMarkdown file

overwrite

if you want to comment out the lines from the original file

Details

warning: the original file will be overwritten, with any lines containing blacklisted code commented out

Value

a tibble with columns blacklist, whether any functions were found; and bfns, names of these functions

See Also

get_blacklist


dalejbarr/assessr documentation built on Jan. 25, 2024, 10:47 p.m.