Closed IndrajeetPatil closed 1 year ago
But, as {pak} itself reveals, {statsExpressions} doesn't rely on {RcppGSL}, through any of its weak or strong dependencies:
It does when some dependencies need to be installed from source:
❯ PKG_PLATFORMS=source R -q
❯ pak::pkg_deps_explain("IndrajeetPatil/statsExpressions@strict_windows", "RcppGSL", dependencies = TRUE)
statsExpressions -> metaplus -> Rfast -> RcppZiggurat -> RcppGSL
Ah, I see. Thanks for the clarification.
Is there any way to avoid {RcppGSL}
download failure on macOS in GHA workflow?
It is not a download failure, it is a build failure. You probably need to install GSL to build it from source: https://github.com/cran/RcppGSL/blob/9674943f5f483dd8f53ed471bd6598a5413f903e/DESCRIPTION#L24
I am not sure why it is built from source, though.
Oh, because you are using R-devel, and CRAN does not have macOS binaries for R-devel.
It is not a download failure, it is a build failure. You probably need to install GSL to build it from source: https://github.com/cran/RcppGSL/blob/9674943f5f483dd8f53ed471bd6598a5413f903e/DESCRIPTION#L24
I will try this.
Oh, because you are using R-devel, and CRAN does not have macOS binaries for R-devel.
Ah, I see. I will use the R-release version for macOS then.
Thanks a lot, Gabor!!
I see workflow failures only on macOS because a dependency can't be successfully downloaded.
Build failure log
But, as
{pak}
itself reveals,{statsExpressions}
doesn't rely on{RcppGSL}
, through any of its weak or strong dependencies:So I am not sure why this dependency is needed here. Is this a bug in
{pak}
?P.S. Note that I am using devel version of
{pak}
in the workflow.