2
library(ca)
# Loading required package: rgl
library(Rcmdr)
# R Commander starts

# When trying to close R Commander window
Error in unloadNamespace("rgl") : name space 'rgl' is still used by: 'ca'

What is the suggested way to close R Commander in such a situation?

rcs
  • 67,191
  • 22
  • 172
  • 153
gd047
  • 29,749
  • 18
  • 107
  • 146

1 Answers1

1

Try

unloadNamespace('ca')

then close the 'Rcmdr' window.

You'll need to reattach the 'ca' package if you still need to use it.

wkmor1
  • 7,226
  • 3
  • 31
  • 23
  • Error in closeCommander(ask.save = getRcmdr("ask.on.exit")) : could not find function "rgl.quit" – gd047 Apr 26 '10 at 13:29
  • It's not clear how, from the steps you've outlined above, but the 'rgl' package has been detached while its namespace remains. 'Rcmdr' checks this before it exits and will unsuccessfully try to quit 'rgl' for you. Anyway, now you should try: `unloadNamespace('rgl')` Now close 'Rcmdr'. – wkmor1 Apr 26 '10 at 23:55