R/zzz.R

Defines functions .onLoad

.onLoad <-
        function(libname,
                 pkgname) {

                x <-
                tryCatch(
                        read_cdm_wiki_table(),
                        error = function(e) NULL
                )

                if (is.null(x)) {

                        packageStartupMessage(
                                "Error: when reading GitHub Wiki <https://ohdsi.github.io/CommonDataModel/cdm60.html>"
                        )

                }


        }
patelm9/chariot documentation built on Feb. 19, 2022, 11:29 a.m.