Skip to content
Prev 6991 / 12125 Next

[R-pkg-devel] GitHub Action failed re-building 'sos.Rnw'

For ks, if you look here: 
https://github.com/sbgraves237/sos/runs/2650960959?check_suite_focus=true

in the "Install Dependencies" section, you'll see these errors:

trying URL 'https://cloud.r-project.org/src/contrib/ks_1.13.0.tar.gz'
Content type 'application/x-gzip' length 1076044 bytes (1.0 MB)
==================================================
downloaded 1.0 MB

* installing *source* package ?plot3D? ...
** package ?plot3D? successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error: Error: .onLoad failed in loadNamespace() for 'tcltk', details:
ERROR: lazy loading failed for package ?plot3D?
   call: fun(libname, pkgname)
* removing ?/Users/runner/work/_temp/Library/plot3D?
   error: X11 library is missing: install XQuartz from www.xquartz.org
Execution halted
ERROR: dependency ?plot3D? is not available for package ?ks?
* removing ?/Users/runner/work/_temp/Library/ks?

so the problem is really with plot3D, and indirectly with rgl and tcltk. 
I'm familiar with problems like that!  Here are the lines from the rgl 
workflow to work around the XQuartz issues:

     env:
       R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
       _R_CHECK_FORCE_SUGGESTS_: false
       RSPM: ${{ matrix.config.rspm }}
       GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
       RGL_USE_NULL: true

The last line might be enough for you, but I think the 2nd line

_R_CHECK_FORCE_SUGGESTS_: false

may be more important:  you use ks, it imports plot3D, plot3D imports 
misc3d, but it only suggests rgl and tkrplot:  so that would let ks load 
without XQuartz support.

Duncan Murdoch
On 23/05/2021 3:09 p.m., Spencer Graves wrote: