Skip to content

Commit c462fb7

Browse files
jefferisgaborcsardi
authored andcommitted
Set RGL_USE_NULL to avoid rgl install errors (#333)
* Set RGL_USE_NULL to avoid rgl install errors * fixes an issue when installing packages depending on rgl in a headless environment (e.g. remote server such as travis) * closes #332
1 parent bc90281 commit c462fb7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
repo owner and repo correctly (included in the error message), and that
3939
they have the required permissions to access the repository.
4040

41+
* `install_*` fuctions (via the underlying private `install` function) now set
42+
`RGL_USE_NULL="TRUE"` in order to avoid errors when running headless
43+
and installing any package using `rgl` (@jefferis, ##333)
44+
4145
# remotes 2.0.2
4246

4347
* `install_deps()` now installs un-installed remotes packages even when

R/install.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ safe_install_packages <- function(...) {
5757
with_envvar(
5858
c(R_LIBS = lib,
5959
R_LIBS_USER = lib,
60-
R_LIBS_SITE = lib),
60+
R_LIBS_SITE = lib,
61+
RGL_USE_NULL = "TRUE"),
6162

6263
# Set options(warn = 2) for this process and child processes, so that
6364
# warnings from `install.packages()` are converted to errors.

0 commit comments

Comments
 (0)