[R] Question regarding QT device

2007-08-05 Thread Saptarshi Guha
Hi,
After a few modifications in the makefiles, I successfully compiled  
the Qt device (written by Deepayan Sirkar) for OS X 10.4.9 on a  
Powerbook.
However when loading into R

If i remove this line from zzz.R in qtutils/R

grDevices::deviceIsInteractive(QT)

and then install
library(qtutils)

loads fine and the QT() calls returns a QT window, however, if i  
switch to another application and then switch back to the R GUI, the  
menubar has disappeared.

If I do not remove the line

grDevices::deviceIsInteractive(QT)

the following error appears an qtutils does not load
Error : 'deviceIsInteractive' is not an exported object from  
'namespace:grDevices'
Error : .onLoad failed in 'loadNamespace' for 'qtutils'
Error: package/namespace load failed for 'qtutils'

Could anyone provide some pointers to get that deviceIsInteractive  
to work?

Thanks for your time
Saptarshi

Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Question regarding QT device

2007-08-05 Thread Prof Brian Ripley
grDevices::deviceIsInteractive is only in the unreleased R-devel version 
of R: which version are you using?

Please do study the R posting guide: we do ask for basic information for a 
good reason, and do ask for questions on packages (especially unreleased 
packages) to be sent to the maintainer.


On Sun, 5 Aug 2007, Saptarshi Guha wrote:

 Hi,
   After a few modifications in the makefiles, I successfully compiled
 the Qt device (written by Deepayan Sirkar) for OS X 10.4.9 on a
 Powerbook.
   However when loading into R

   If i remove this line from zzz.R in qtutils/R

 grDevices::deviceIsInteractive(QT)

   and then install
   library(qtutils)

   loads fine and the QT() calls returns a QT window, however, if i
 switch to another application and then switch back to the R GUI, the
 menubar has disappeared.

   If I do not remove the line

 grDevices::deviceIsInteractive(QT)

   the following error appears an qtutils does not load
   Error : 'deviceIsInteractive' is not an exported object from
 'namespace:grDevices'
   Error : .onLoad failed in 'loadNamespace' for 'qtutils'
   Error: package/namespace load failed for 'qtutils'

   Could anyone provide some pointers to get that deviceIsInteractive
 to work?

   Thanks for your time
   Saptarshi

 Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha


   [[alternative HTML version deleted]]

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Question regarding QT device

2007-08-05 Thread deepayan . sarkar
On 8/5/07, Saptarshi Guha [EMAIL PROTECTED] wrote:
 Hi,
   After a few modifications in the makefiles, I successfully compiled
 the Qt device (written by Deepayan Sirkar) for OS X 10.4.9 on a
 Powerbook.

Cool, can you send me the modifications? I haven't managed to compile
qtutils on OS X yet (not that I've tried too hard).

   However when loading into R

   If i remove this line from zzz.R in qtutils/R
   
 grDevices::deviceIsInteractive(QT)
   
   and then install
   library(qtutils)

   loads fine and the QT() calls returns a QT window, however, if i
 switch to another application and then switch back to the R GUI, the
 menubar has disappeared.

I can't test this, but Qt is designed to run as the main application,
so it's possible that it is overriding whatever the GUI is doing.

   If I do not remove the line

 grDevices::deviceIsInteractive(QT)
   
   the following error appears an qtutils does not load
   Error : 'deviceIsInteractive' is not an exported object from
 'namespace:grDevices'
   Error : .onLoad failed in 'loadNamespace' for 'qtutils'
   Error: package/namespace load failed for 'qtutils'

   Could anyone provide some pointers to get that deviceIsInteractive
 to work?

What's your R version? Do you see this in 2.5.1?

-Deepayan

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.