Nothing
globalVariables(c("..", "self", "private", "N"))
.generator_null <- NULL
.compilation_unit <- NULL
.onAttach <- function(libname, pkgname) {
}
.onLoad <- function(libname, pkgname) {
# required environment variable on Mac for parallel use of libtorch:
osname<-tolower(Sys.info()[["sysname"]])
if (osname == "darwin" && Sys.getenv("OMP_NUM_THREADS") == "") {
Sys.setenv(OMP_NUM_THREADS = parallel::detectCores())
}
cpp_vol2bird_namespace__store_main_thread_id()
cpp_vol2bird_initialize()
cpp_vol2bird_set_wsr88d_site_location(file.path(find.package(pkgname), "librsl", "wsr88d_locations.dat"))
install_success <- TRUE
if (mistnet_exists() && install_success) {
# in case init fails we will just have disabled mistnet and run without it..
tryCatch(
{
mistnet_start(verbose = FALSE)
},
error = function(e) {
}
)
}
}
.onUnload <- function(libpath) {
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.