Skip to content

Instantly share code, notes, and snippets.

@MVesuviusC
Last active March 5, 2024 14:03
Show Gist options
  • Save MVesuviusC/4ea15e75e44c4a885c3456ab43d6d43b to your computer and use it in GitHub Desktop.
Save MVesuviusC/4ea15e75e44c4a885c3456ab43d6d43b to your computer and use it in GitHub Desktop.
R package install error
from: https://researchcomputing.princeton.edu/support/knowledge-base/rrstudio
9. How can I solve the following error?
Installing package into ‘/home/ceisgrub/R/x86_64-redhat-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
[tcl] grab failed: window not viewable.
R is trying to display a list of mirrors via X11 forwarding so try unsetting DISPLAY before starting R:
$ unset DISPLAY
$ R
> install.packages("<package-name>")
Or try:
> install.packages("cargo")
Installing package into ‘/gpfs0/home2/gdrobertslab/mvc002/R/x86_64-pc-linux-gnu-library/4.3’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
[tcl] grab failed: window not viewable.
> install.packages("cargo",)
pkgs= repos= method= destdir= type= configure.vars= Ncpus= libs_only= quiet= ...
lib= contriburl= available= dependencies= configure.args= clean= verbose= INSTALL_opts= keep_outputs=
> install.packages("cargo", tcl)
> library(tcltk)
> tclServiceMode(TRUE)
Then install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment