Skip to content

Commit

Permalink
Update initi_py.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mingdeyu committed Jan 7, 2025
1 parent d6ba6dd commit b119249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/initi_py.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ init_py <- function(py_ver = NULL, dgpsi_ver = NULL, reinstall = FALSE, uninstal

install_dgpsi <- function(env_name, py_ver, conda_path, dgpsi_ver, reinsatll = FALSE) {
if (!reinsatll) message(sprintf("Setting up the Python environment for %s ...\n", dgpsi_ver))
if (!reinsatll) reticulate::conda_create(envname = env_name, python_version = py_ver, conda = conda_path)
if (!reinsatll) reticulate::conda_create(envname = env_name, python_version = py_ver, conda = conda_path, forge = TRUE, additional_create_args = c('--strict-channel-priority'))
if (reinsatll) {
message("Re-installing the required Python packages ...")
} else {
Expand Down

0 comments on commit b119249

Please sign in to comment.