tests/testthat/helper.R

get_os_string <- function(unix_string, windows_string) {
    output <- unix_string
    if (.Platform$OS.type == "windows") {
        output <- windows_string
    }

    output
}

find_string <- function(value, lines = c()) {
    found <- FALSE

    for (line in lines) {
        found <- grepl(value, line)

        if (found) {
            break
        }
    }

    found
}
sagiegurari/scriptexec documentation built on Oct. 5, 2020, 6:42 p.m.