'where is RETICULATE_PYTHON loaded from

Every time I start RStudio, the wrong value is loaded. I'd like to change the value from a conda path to a regular python path.

> Sys.getenv("RETICULATE_PYTHON")
[1] "C:/wrong/anaconda/path"

Meaning I have to manually set this envvar

Sys.setenv("RETICULATE_PYTHON" = "C:/Users/xx/AppData/Local/Programs/Python/Python310/python.exe")

I have no idea where the initial value comes from. I checked for .Rprofile or .Renviron files in

path.expand("~")
R.home()
getwd()

But none exist... On the Windows command prompt, there is no such variable (SET R only shows RTOOLS40_HOME)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source