Skip to content
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

why building RCall.jl failed during the registration of an package #493

Closed
szcf-weiya opened this issue Jul 5, 2023 · 2 comments
Closed

Comments

@szcf-weiya
Copy link
Contributor

I am struggling with an error in the AutoMege step when registering my package that depends on RCall.jl. Here is the pull request on the General repo and the action log info.

JuliaRegistries/General#86838
https://github.com/JuliaRegistries/General/actions/runs/5464785321/jobs/9947294633?pr=86838

According to the action log info, it failed during the build of RCall.jl

image

It confused me that it tries to install a conda R. If I understand correctly, the conda R procedure is only triggered when R_HOME is set to be *,

RCall.jl/deps/build.jl

Lines 27 to 37 in 2df5ef8

Rhome = get(ENV, "R_HOME", "")
if Rhome == "*"
# install with Conda
@info "Installing R via Conda. To use a different R installation,"*
" set the \"R_HOME\" environment variable and re-run "*
"Pkg.build(\"RCall\")."
conda_provided_r = true
Conda.add_channel("r")
Conda.add("r-base>=3.4.0,<4") # greater than or equal to 3.4.0 AND strictly less than 4.0
Rhome = joinpath(Conda.LIBDIR, "R")
libR = locate_libR(Rhome)

However, I did not set the env in my package. And I also check the last GitHub action log of RCall.jl in the AutoMerge step,

https://github.com/JuliaRegistries/General/actions/runs/4701731245/jobs/8338139220

image

Note that it did not print out Info: Installing R via Conda..., so it indeed did not try to install a Conda R, right?

So my question is why it tried to install a conda R during my registration. Am I missing something? Thanks!

@szcf-weiya
Copy link
Contributor Author

@szcf-weiya szcf-weiya changed the title why RCall.jl tried to install a conda R during the registration of an package without setting R_HOME=* why building RCall.jl failed during the registration of an package Jul 6, 2023
@szcf-weiya
Copy link
Contributor Author

proposed a solution JuliaPy/Conda.jl#243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant