R linux terminal execution of gWidget script

69 Views Asked by At

I've written a script in R using the gWidgets library. It works perfectly when I copy and paste the script into R, but it's failing mid-execution when executed using

./myscript.r

in the linux terminal with an error message

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘.gwindow’ for signature ‘"NULL"’ Calls: gwindow -> .gwindow ->

I used the gwindow function once in the script as this:`

win <- gwindow("Diary", horizontal = FALSE, visible=TRUE, height = 1000)

So, I'm asking, why do I have an error message for 'signature "NULL"' ?

0

There are 0 best solutions below