#' NGBoost for R
#'
#' \href{https://stanfordmlgroup.github.io}{NGBoost} This package contains a wrapper for the NGBoost python Module
#' @import reticulate
#'
#' @docType package
#' @name ngboost
#' @export
ngboost <- NULL
sklearn <- NULL
.onLoad <- function(libname, pkgname) {
# delay load foo module (will only be loaded when accessed via $)
# ngbR <<- reticulate:import("ngboost", delay_load = TRUE)
#packageStartupMessage("Cargando ngbR")
#reticulate::configure_environment(pkgname)
ngboost <<- reticulate::import("ngboost",delay_load = TRUE)
sklearn <<- reticulate::import("sklearn",delay_load = TRUE)
#packageStartupMessage("Cargado ngbR")
}
#' Version Number of the python module NGBoost
#'
#' @return Version Number of the python module NGBoost
#' @export
ngboost_python_version <- function() {
ver <- ngboost$`__version__`
ver
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.