```r
# Error in .os_py_path(envname = path) :
# Assertion on 'path' failed: Directory '/Users/wwang/Library/r-miniconda-arm64' does not exist.
```
To Reproduce
Steps to reproduce the behavior, i.e.:
Install a conda in you computer before using Giotto or other reticulate-based package.
1.1 Check the default conda path given by reticulate
# r command
reticulate::miniconda_path()
# /Users/wwang/Library/r-miniconda-arm64
1.2 Make sure you conda exists in another default place and the default conda path given by reticulate is clean.
The final conda env should look like this
# shell command
conda env list
# conda environments:
#
# base /Users/wwang/miniconda3
# conda_env_1 /Users/wwang/miniconda3/envs/conda_env_1
# conda_env_2 /Users/wwang/miniconda3/envs/conda_env_2
Note: /Users/wwang/miniconda3 is the default path when you install using conda's script.
1.3 You can also verify this situation in R
# r command
reticulate::conda_binary(conda = "auto") == file.path(reticulate::miniconda_path(), "bin", "conda")
The results should be FALSE.
Try to install miniconda environment
installGiottoEnvironment()
Explanation
These two functions in reticulate give the conda path in different ways.
The reticulate::miniconda_path() return a fixed path, while reticulate::conda_binary(conda = "auto") detect the existing conda.
Describe the Error
Giotto environment installation failure.
...
Error Message
To Reproduce
Steps to reproduce the behavior, i.e.:
The final conda env should look like this
Note:
/Users/wwang/miniconda3
is the default path when you install using conda's script.The results should be
FALSE
.Explanation
These two functions in
reticulate
give the conda path in different ways. Thereticulate::miniconda_path()
return a fixed path, whilereticulate::conda_binary(conda = "auto")
detect the existing conda.