.onLoad and gWidgets R - error in package build
问题 I've just finished making another R tool for a colleague and have done a simple gWidgets GUI to go with it. However I'm having trouble getting it to come up on package load: The error when building the package comes straight away in the .onLoad function, as soon as gwindow is called, on my system, even the following tidbit of code causes the error when I build the package binary - let alone my full gui: .onLoad <- function(...){ MainWindow <- gwindow("My GUI Window!", visible=TRUE) } call: