.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()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.