Installation of XQuartz Not Found

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 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:

Here is a simplified .yml file that runs the workflow and reproduces my issue:

name: Run Tutorial
on: [push]
    runs-on: macOS-10.15
      - 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!

This suggests that the tool needs a graphical environment to run, which isn’t present on the Github hosted runners. On Linux I’d probably use Xdummy or a VNC server to provide one, I’m not sure what options you have on macOS.

1 Like

I guess what I’m looking to do isn’t currently possible, that’s unfortunate but makes sense, thank you for the response. Will accept it as the solution unless someone has any other ideas.