#' @import BBmisc
#' @import curl
#' @import checkmate
#' @import stringi
#' @import XML
#' @import jsonlite
#' @import data.table
#' @importFrom httr POST GET DELETE content upload_file status_code
#' @importFrom memoise memoise forget
#' @importFrom digest digest
#' @importFrom stats setNames sd na.omit
#' @importFrom utils packageVersion type.convert
NULL
.OpenML.config = getDefaultConfig()
.onLoad = function(libname, pkgname) {
backports::import(pkgname)
# set config (especially the cachedir) on package loading, otherwise the cachedir from compile-time will be used
do.call("setOMLConfig", as.list(getDefaultConfig()))
# if config file exist, use configuration from this file
fn.user = path.expand("~/.openml/config")
if (file.exists(fn.user))
loadOMLConfig(fn.user, assign = TRUE)
createCacheSubDirs(verbosity = 0L)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.