Skip to content

Commit 0255260

Browse files
authored
Fix warnings in Positron (#1721)
fix warnings in Positron
1 parent 88fad73 commit 0255260

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/py_require.R

+4-2
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,12 @@ uv_get_or_create_env <- function(packages = py_reqs_get("packages"),
461461
cache_dir <- #if (is_reticulate_managed_uv(uv))
462462
c("--cache-dir", reticulate_managed_uv_cache_dir())
463463

464+
if (is_positron())
465+
withr::local_envvar(c(RUST_LOG=NA))
466+
464467
uv_args <- c(
465468
"run",
466-
"--no-project",
469+
"--no-config",
467470
"--python-preference=only-managed",
468471
cache_dir,
469472
python_version,
@@ -575,4 +578,3 @@ uv_cache_dir <- function(uv = uv_binary(bootstrap_install = FALSE)) {
575578
error = function(e) NULL
576579
)
577580
}
578-

0 commit comments

Comments
 (0)