Skip to content

Commit

Permalink
comments out env installation prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Jan 24, 2025
1 parent 8bff269 commit a2b9ba4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions R/config.R
Original file line number Diff line number Diff line change
Expand Up @@ -492,14 +492,15 @@ try_create_default_virtualenv <- function(package = "reticulate", ...) {
return(NULL)

if (permission == "") {
if (is_interactive()) {
permission <- utils::askYesNo(sprintf(
"Would you like to create a default Python environment for the %s package?",
package))
if (!isTRUE(permission))
return(NULL)
permission <- "true"
}
return(NULL)
# if (is_interactive()) {
# permission <- utils::askYesNo(sprintf(
# "Would you like to create a default Python environment for the %s package?",
# package))
# if (!isTRUE(permission))
# return(NULL)
# permission <- "true"
# }
}

if (!permission %in% c("true", "yes", "1"))
Expand Down

0 comments on commit a2b9ba4

Please sign in to comment.