Skip to content

Commit

Permalink
Add a get_env() helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
bodkan committed Feb 21, 2024
1 parent 83f30e8 commit 162cccd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/interface.R
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,12 @@ clear_env <- function(force = FALSE) {
} else
warning("No automatic slendr Python environment has been found so there is\n",
"nothing to delete.", call. = FALSE)

#' Get the name of the current slendr Python environment
#'
#' @return Name of the slendr Python environment
get_env <- function() {
PYTHON_ENV
}

#' Check that the active Python environment is setup for slendr
Expand Down

0 comments on commit 162cccd

Please sign in to comment.