Skip to content

Commit 398ed3b

Browse files
committed
fix: replace %||% with if/else for R < 4.4 compat
1 parent 89eef97 commit 398ed3b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

R/acro_init.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ install_conda <- function(envname) { # nocov
3333
# Internal helper: install ACRO in a Python virtual environment
3434
install_venv <- function(envname = acro_venv) {
3535
if (!reticulate::virtualenv_exists(envname)) {
36-
python <- reticulate::virtualenv_starter() %||% get_python()
36+
python <- reticulate::virtualenv_starter()
37+
if (is.null(python)) python <- get_python()
3738

3839
reticulate::virtualenv_create(
3940
envname = envname,

0 commit comments

Comments
 (0)