tags:

views:

68

answers:

1
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? Thank you

A: 

Try

unloadNamespace('ca')

then close the 'Rcmdr' window.

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

wkmor1
Error in closeCommander(ask.save = getRcmdr("ask.on.exit")) : could not find function "rgl.quit"
gd047
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