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 | sapsi@pobox.com | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]]
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 | sapsi at pobox.com | http://www.stat.purdue.edu/~sguha > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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, ripley at stats.ox.ac.uk 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, UK Fax: +44 1865 272595
On 8/5/07, Saptarshi Guha <sapsi at pobox.com> 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