R/zzz.R

Defines functions .onLoad

.onLoad <-
  function(libname, pkgname) {
    reticulate::configure_environment(pkgname)

    # This will fail before Neptune is installed
    tryCatch(
      {
        ANONYMOUS_API_TOKEN <<- get_neptune()["ANONYMOUS_API_TOKEN"]
      },
      error = function(e) {
        warning(
          "ANONYMOUS_API_TOKEN was not initialized because Neptune client appears not to be installed"
        )
      }
    )
  }
neptune-ai/neptune-r documentation built on Aug. 21, 2023, 6:51 p.m.