Skip to content

Commit

Permalink
set rgl device to NULL if headless
Browse files Browse the repository at this point in the history
  • Loading branch information
markheckmann committed Dec 29, 2023
1 parent 4b40857 commit 44bf843
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
# - {os: macos-latest, r: 'release'}
# - {os: windows-latest, r: 'release'}
# - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
# - {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions vignettes/web/visualization-biplot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ settings(show.scale=FALSE, show.meta=FALSE)
library(knitr)
knitr::opts_chunk$set(collapse = TRUE, comment = "#", fig.height=6)
knit_hooks$set(webgl = hook_webgl)
if (!interactive()) {
options(rgl.useNULL = TRUE) # disable on headless device
}
```


Expand Down

0 comments on commit 44bf843

Please sign in to comment.