tests/testthat/helper-init.R

# prefer Python 3 if available  [ see: https://github.com/rstudio/reticulate/blob/master/tests/testthat/helper-init.R ]
if (!reticulate::py_available(initialize = FALSE) &&
    is.na(Sys.getenv("RETICULATE_PYTHON", unset = NA)))
{
  python <- Sys.which("python3")
  if (nzchar(python))
    reticulate::use_python(python, required = TRUE)
}

Try the nmslibR package in your browser

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

nmslibR documentation built on Feb. 16, 2023, 5:17 p.m.