R/neptune_set_api_token.R

neptune_set_api_token <-
function (token)
{
  if(py_available()){
    reticulate::py_run_string(paste0("import os
os.environ['NEPTUNE_API_TOKEN'] = '",token,"'"))
  }
  
  Sys.setenv(NEPTUNE_API_TOKEN = token)
}

Try the neptune package in your browser

Any scripts or data that you put into this service are public.

neptune documentation built on April 13, 2022, 5:14 p.m.