-
Notifications
You must be signed in to change notification settings - Fork 329
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
Config/reticulate
in package DESCRIPTION file does not install Python dependencies
#883
Comments
The biggest problem here is that normally, R packages shouldn't be downloading and installing software onto the CRAN build machines when running tests. I also think it is unlikely to me that you would want to spend time debugging test failures that might only occur on CRAN's machines. All that said, I have a test package here: https://github.com/kevinushey/usespandas and it seems to work as expected:
I see:
|
Thanks for your answer! |
In particular, it's done as soon as Python is initialized -- so packages can be loaded, users can configure the version of Python to be used, and then once a version of Python is selected the requisite Python modules can be installed. |
I'm using my own Python functions wrapped by my R package functions, so I have the Python Pandas dependency in my R Package.
I would like to see all my Python dependencies installed in the project's active Python environment when I install my package from GitHub. Thus, I have been following this article of reticulate.
I have introduced the following to the DESCRIPTION file, whith
pip = FALSE
since I want to use condaenv:And I have introduced the following to an R script
package_utils.R
in package'sR/
folder:The python script with my Python functions is located in package's
inst/python/utils.py
folder, and all functions are loaded in a global environmentpyenv
in order to be accessible from all other R functions.Then, when I make the CRAN check or install the package i get the following error:
Then, the
Config/reticulate
in DESCRIPTION is not installing the dependencies automatically. What do I need to configure a part from these files above?Thanks!
The text was updated successfully, but these errors were encountered: