JuliaInterop / RCall.jl

Call R from Julia
Other
318 stars 59 forks source link

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

Closed szcf-weiya closed 10 months ago

szcf-weiya commented 12 months ago

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.

https://github.com/JuliaRegistries/General/pull/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 *,

https://github.com/JuliaInterop/RCall.jl/blob/2df5ef814047f27009df3dc293ba81ec195359c3/deps/build.jl#L27-L37

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 commented 12 months ago

Just found R_HOME=* is defined in the RegistryCI.jl

https://github.com/JuliaRegistries/RegistryCI.jl/blob/a20db2707b49acbff27c382e8acdf775a47bdc97/src/AutoMerge/guidelines.jl#L895

szcf-weiya commented 10 months ago

proposed a solution https://github.com/JuliaPy/Conda.jl/pull/243