Warning: unable to load shared object 'R_X11.so': libXt.so.6: cannot open shared object file

This issue has been tracked since 2022-05-03.

I got constant warning:

Warning message:
In grSoftVersion() :
unable to load shared object '/usr/local/lib/R/modules//R_X11.so':
libXt.so.6: cannot open shared object file: No such file or directory

I also wanted to fix maybe the issue with solution I found somewhare - apt-get install -y --no-install-recommends libxt6, but I couldnt find the sudo password to do this in the terminal in Rstudio?

eitsupi wrote this answer on 2022-05-03

What is the image you are using?
(if you can provide the repo digest it will help us to reproduce the issue)

$ docker inspect rocker/r-ver | jq '.[].RepoDigests[]'
"rocker/[email protected]:9305f45341433daac40ccdc6185b5ccbeab0184abcd82868dc2bda6c958a7b60"

By the way, in my experience, you can ignore that warning.

eddelbuettel wrote this answer on 2022-05-03

Irreproducible in the repo against which this was filed:

[email protected]:~$ docker run --rm -ti rocker/r-base:4.2.0 R

R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> grSoftVersion()
                   cairo                  cairoFT                    pango 
                "1.16.0"                       ""                 "1.50.6" 
                  libpng                     jpeg                  libtiff 
                "1.6.37"                    "6.2" "LIBTIFF, Version 4.3.0" 
More Details About Repo
Owner Name rocker-org
Repo Name rocker
Full Name rocker-org/rocker
Language Shell
Created Date 2014-06-13
Updated Date 2022-11-25
Star Count 1346
Watcher Count 59
Fork Count 270
Issue Count 25


Issue Title Created Date Updated Date