R/utility.R

Defines functions whoami_available

Documented in whoami_available

#' Find out if the whoami package binaries is installed (git + whoami)
#' @return logical that is TRUE if whoami and git can be found
#' @export
whoami_available <- function() {

    ## check if pandoc can be found on the path
    whoami_bin <- as.character(Sys.which('whoami'))
    git_bin <- as.character(Sys.which('git'))

    ## return whatever found
    (whoami_bin != '') & (git_bin != '')

}

Try the dataMaid package in your browser

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

dataMaid documentation built on Oct. 8, 2021, 9:08 a.m.