R/helpers.R

Defines functions have_dependencies

Documented in have_dependencies

#' Check whether python and dependencies are available on system
#'
#' @return boolean TRUE/ FALSE
#' @export
have_dependencies <- function() {

  return(
    all(reticulate::py_available(),
        reticulate::py_module_available("scipy"),
        reticulate::py_module_available("joblib"),
        reticulate::py_module_available("numpy"),
        reticulate::py_module_available("pandas")
    )
  )
}

Try the sarp.snowprofile.pyface package in your browser

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

sarp.snowprofile.pyface documentation built on Nov. 1, 2022, 5:06 p.m.