R/check_brackets.R

Defines functions check_brackets

Documented in check_brackets

check_brackets <- function(filename) {
    if (!(length(filename) == 1L & is.character(filename))) {
        stop(sQuote("filename"), " must be a length-one character vector")
    }
    out <- .C(check_rtf_brackets, as.character(filename), 99L)
    out$status_code
}    

Try the rtfSweave package in your browser

Any scripts or data that you put into this service are public.

rtfSweave documentation built on June 21, 2022, 3:01 p.m.