Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions R/is_python_package_with_version_installed.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ is_python_package_with_version_installed <- function( # nolint indeed a long fun
python_version = get_default_python_version(),
verbose = FALSE
) {
if(!requireNamespace("semver")){
stop("'semver' must be installed to use this function: install.packages('semver')")
}
# 'get_installed_python_packages' will use 'python3'
# or call create_and_activate_conda_env'
t <- ormr::get_installed_python_packages(
Expand Down