R GUI does not open in windows command prompt
Have tried following
code in R-TestRGUI.R
library(gWidgets)
library(gWidgetstcltk)
lmwidget <- ggenericwidget(lm)
Tried calling the above script in command line using the following code
"C:\Program Files\R\R-3.6.1\bin\x64\R.exe"
D:\\Esureyingsofttech\\TestRGUI.R
When the above R script is run in R the GUI gets displayed....but when the same code is executed from command prompt we get the following error
D:\Esurveyingsofttech>"C:\Program Files\R\R-3.6.1\bin\x64\Rscript.exe" D:\\Esurveyingsofttech\\TestRGUI.R
Loading required package: tcltk
Loading required package: digest
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function '.ggroup' for signature '"NULL"'
Calls: ggenericwidget ... .ggenericwidget -> ggroup -> .ggroup -> <Anonymous>
Execution halted
The code should run in the command prompt also