Hi,

I saved an image and planed to open it whenever I want to load it.
However, when I open it, It doesn't work.
The code is following, and saved it as an image.

.First<-function(){
        require(tcltk)
        require(TeachingDemos)
        library(gWidgetstcltk)
        options(guiToolkit = "tcltk")
        win <- gwindow("Don't worry", visible = FALSE)
}

Error message is following,

Error : .onLoad failed in loadNamespace() for 'tcltk2', details:
  call: .tk2dde.require()
  error: Unable to find the 'dde' Tcl/tk package!
Warning messages:
1: In tclRequire("dde") : Tcl package 'dde' not found
2: In tclRequire("dde", warn = TRUE) : Tcl package 'dde' not found
Failed with error:  ‘package ‘tcltk2’ could not be loaded’

Loading required package: gWidgetstcltk
Loading required package: tcltk2
Error : .onLoad failed in loadNamespace() for 'tcltk2', details:
  call: .tk2dde.require()
  error: Unable to find the 'dde' Tcl/tk package!
Warning messages:
1: In tclRequire("dde") : Tcl package 'dde' not found
2: In tclRequire("dde", warn = TRUE) : Tcl package 'dde' not found
Failed with error:  ‘package ‘tcltk2’ could not be loaded’
Loading required package: gWidgetstcltk
Loading required package: tcltk2
Error : .onLoad failed in loadNamespace() for 'tcltk2', details:
  call: .tk2dde.require()
  error: Unable to find the 'dde' Tcl/tk package!
Failed with error:  ‘package ‘tcltk2’ could not be loaded’
Warning messages:
1: In tclRequire("dde") : Tcl package 'dde' not found
2: In tclRequire("dde", warn = TRUE) : Tcl package 'dde' not found

How can I solve the problem?

Thanks.


--
View this message in context: 
http://r.789695.n4.nabble.com/Error-in-use-of-gwindow-and-First-function-tp4517950p4517950.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to