安装gWidgets2tcltk


Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyWarning 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


* 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:
no DISPLAY variable so Tk is not available
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’



capabilities()["tcltk"]
BiocManager::install('gWidgets2tcltk')
devtools::install_github("jverzani/gWidgets2tcltk")
```
不能在Rstudio中安装, 不能在tmux 下装, 直接在终端装。

版权声明:本文为luo617原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。