R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
    ti <- tryCatch(import("fhirclient"), error = function(e)NULL)
    if(is.null(ti)){
        warning("Trying to install fhirclient")
        install_fhirclient(method = "pip")
    }
    invisible()
}
qhu75/fhiRclient documentation built on Dec. 31, 2020, 2:11 a.m.