R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
  # Attempt to use pre-defined environment
  if (reticulate::virtualenv_exists("fortls_env")) {
    reticulate::use_virtualenv("fortls_env", required = FALSE)
  } else if (reticulate::condaenv_exists("fortls_env")) {
    reticulate::use_condaenv("fortls_env", required = FALSE)
  }
}

Try the FORTLS package in your browser

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

FORTLS documentation built on Nov. 11, 2025, 5:06 p.m.