Problem installing gWidgets2tcltk

Hi, when I try to install package gWidgets2tcltk I get this error. How can I solve this issue?

install.packages("gWidgets2tcltk")
Installing package into ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'http://rspm/default/__linux__/focal/latest/src/contrib/gWidgets2tcltk_1.0-8.tar.gz'
Content type 'application/x-gzip' length 509228 bytes (497 KB)

downloaded 497 KB

  • installing source package ‘gWidgets2tcltk’ ...
    ** package ‘gWidgets2tcltk’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** R
    ** demo
    ** inst
    ** byte-compile and prepare package for lazy loading
    Warning message:
    In fun(libname, pkgname) : couldn't connect to display ":0"
    Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
    [tcl] invalid command name "font".

Error: unable to load R code in package ‘gWidgets2tcltk’
Execution halted
ERROR: lazy loading failed for package ‘gWidgets2tcltk’

  • removing ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.2/gWidgets2tcltk’
    Warning in install.packages :
    installation of package ‘gWidgets2tcltk’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpuxFuEu/downloaded_packages’

Sadly, this package requieres tcl/tk and nothing depending on X11 will work in RStudio Cloud because it runs on headless servers.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.