Closed jhk0530 closed 6 months ago
How can I solve this problem?
You mean on GHA? I think you need to install XQuartz, but for that you need to modify the R-hub workflow to add this:
- if: runner.os == 'macOS'
run: brew install --cask xquartz
I'll add this to the R-hub actions: https://github.com/r-hub/rhub/issues/606 and then you can leave rhub.yaml
untouched.
Why pak and CRAN 's result are different?
Impossible to know for sure without seeing what you are running and what the output is, but my guess is that from CRAN you are installing a binary package, which does not need Cairo, because it already has it embedded.
The difference is not install.packages()
vs. pak, but installing a binary package vs. a source package. I.e. install.packages("gdtools", type = "source")
will also fail, and pak::pkg_install("gdtools")
will succeed, I think.
As you said, using that code I can check avoided or confirmed the error.
I'll wait until r-hub GHA updated !
Thanks !!
Hi,
pak
contributors. I really like just simplepak::pak
and really appreciate on this.However, recently I found some installing issue (may be bug) with
pak
The package
gdtools
.This can be installed with
install.packages
(from CRAN) but it can't withpak::pak
andremotes::install_github
and below is log of that.
and this is not necessary but I think this can be clue to solve this problem. Here's remotes::install_github's log
So this shows me to there is error with cairo something.
and it is one of
SystemRequirements
ofgdtools
package.so I think, if I install manually
cairo
(likebrew cairo
). this may be solved asSystemRequirements
mentioned (I'm curious then why CRAN version installed without error)However, in github action, I can't install it manually which generates error
How can I solve this problem? or Why pak and CRAN 's result are different?
Thanks !