Hello, I am running a workflow on GitHub Actions and I am looking to run some R code using a package called “rayshader” which requires something called “XQuartz” to be installed.
I am able to install XQuartz successfully using the command:
brew cask install xquartz
The install seems to work based on the results I’m seeing:
But when the code gets to the step that needs XQuartz, I am getting the following error:
error: X11 not found; XQuartz (from www.xquartz.org) is required to run rgl.
Thoughts on why that may be the case? I have a similar step where I need to install pandoc through brew and that works as expected and is found when I run the R command that requires it later on (removed from code for simplicity but that one does work as expected when running my R code and is found). You can find the run from the screenshots above here: https://github.com/ries9112/XQuartz-Test/runs/1306009115?check_suite_focus=true
Here is a simplified .yml file that runs the workflow and reproduces my issue:
name: Run Tutorial on: [push] jobs: build: runs-on: macOS-10.15 steps: - uses: actions/checkout@v2 - uses: r-lib/actions/setup-r@v1 - name: Install XQuartz for rayshader run: | brew cask install xquartz - name: Install Packages run: |- Rscript -e "install.packages('devtools')" Rscript -e "devtools::install_github('tylermorganwall/rayshader')"
Any thoughts on getting this to work? Any help would be much appreciated!