-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid creating folders/files in root (e.g. ~./conda
)
#1055
Comments
I suspect the Honestly, your best hope is likely to avoid evaluating any code that might try to use Python / Anaconda on CRAN (e.g. in tests, examples, vignettes) |
Thanks for the reply @kevinushey.
I think you're correct. I suppose what I'm asking is, does reticulate allow users to specify where the But I can't figure out how that would translate to conda's usage within reticulate. I was looking for some comparable arguments within
I'm a little confused by this, isn't that all of reticulate? that would mean any package that heavily relies on reticulate can't be put on CRAN, unless you remove all means of checking that the code works (which seems likely to break). |
There are probably some environment variables that could be set to control this, but I'm not positive.
Yes, it is. I haven't yet had a conversation with CRAN around what the "right" way to use Python on the CRAN build machines is, and troubleshooting Python issues on CRAN machines is going to be a nightmare for everyone involved. (Unless troubleshooting Solaris build / test failures is your idea of a good time.) For packages using Python / reticulate, I would strongly recommend using continuous integration services (e.g. GitHub Actions) to test any code that requires a specific installation of Python. |
Will let you know how it goes. Testing out something like this to start: conda_dir <- "./.conda"
Sys.setenv("CONDA_ENVS_DIRS"=file.path(.conda_dir,"pkgs"),
"CONDA_PKGS_DIRS"=file.path(.conda_dir,"envs")
)
reticulate::install_miniconda(...)
That does seem rather challenging. Would be incredibly helpful though since more and more of my packages involve some mixture of languages (usually out of necessity). Maybe @flying-sheep / @rcannood / @dynverse could speak a bit more to this since
Definitely, just recently started doing this for all my packages. My GHA setup, which first installs anaconda via brew, seems to be working pretty well for |
I'm trying to create a number of extensions for reticulate in a new package echoconda. However, the CRAN reviewers have come back and said that I can't have any root files/folders leftover as a product of my package.
RajLabMSSM/echoconda#1
echoconda uses reticulate to install conda, which is the only place I can think of that
~/.conda
would be created. And yet reticulate is indeed on CRAN. Do you have any tips for how to avoid this (e.g. creating.conda
elsewhere)?Many thanks,
Brian
PS - I can submit some of these echoconda funcs a PRs to reticulate if you like. In particular,
env_from_yaml()
I find helpful.The text was updated successfully, but these errors were encountered: