Dear Kjetil , Roger,and Brian,

I'm not sure that this will shed any light on Kjetil's problems, but the startup for Rcmdr is

.onAttach <- function(...){
    cat("\nRcmdr Version 0.9-0\n")
    Commander()
    }

.onLoad <- function(...){
save.options <- options(warn=-1)
on.exit(options(save.options))
foreign <- require(foreign)
mva <- require(mva)
ctest <- require(ctest)
tcltk <- require(tcltk)
car <- require(car)
absent <- !c(foreign, mva, ctest, tcltk, car)
if (any(absent)) {
cat("\nThe following packages required by Rcmdr are missing:\n")
cat(paste(c("foreign", "mva", "ctest", "tcltk", "car")[absent], collapse=", "))
cat("\n")
}
}


In a vanilla installation, mva and ctest are among the default packages, so what one should normally see on loading Rcmdr is

> library(Rcmdr)
Loading required package: foreign
Loading required package: tcltk
Loading required package: car

Rcmdr Version 0.9-0
>

Another, possibly relevant, piece of information: .logFont is a Tcl variable containing a font definition:

> .logFont
<Tcl> font1

If trying to print this variable causes Rgui to bomb, then perhaps something is wrong with either the installation of the tcltk package or of Tcl/Tk itself.

I'm aware as well that Kjetil has been unable to get Rcmdr to work properly, for reasons that I've been unable to discover. By the way, Rcmdr requires the SDI.

I hope that this is useful.
 John


At 07:21 PM 7/17/2003 -0400, kjetil brinchmann halvorsen wrote:
On 17 Jul 2003 at 20:59, Prof Brian Ripley wrote:

> Can we check whether you are each running R in MDI or SDI mode (not that
> I have a problem with either, but then I use focus-follows-mouse)?

I am running in MDI mode. Switching to SDI, problem disappears.

But happens only with one of my many R startup icons, not with the
others! It happens when starting in a directory where I experimented
with the package Rcmdr by John Fox, and I guess that must have to do
with the problem. First, the startup message now includes
Loading required package: foreign
Loading required package: mva
Loading required package: ctest
Loading required package: tcltk
Loading required package: car
Loading required package: lattice
Loading required package: grid
Loading required package: nls

loading extra packages compared with factory-fresh standard,
including car. I did'nt change any startup files, so this must have
been set by Rcmdr, but I don't know where.

The value of options("defaultPackages") have not been changed.

When typing ls(all=TRUE) I get a lot of variables names starting with
. , most of them must have been defined by Rcmdr, but none seems
to contain package name info. I have none .Last() or .First()
function anywhere.

Incidentally, one of the variables defined by Rcmdr, .logFont, if I
try to print its value, Rgui bombs, repeatedly!

This is all the info I have been able to find.
I have no .Renviron file, anywhere.
The only changes i made to .Rprofile was to get html help, and
redefing the default editor.

Kjetil Halvorsen

>
> Duncan M has been removing show(RConsole) calls and it is quite possible
> that this is the cause, but we do need to be able to reproduce the
> problem.
>
> On Thu, 17 Jul 2003, Roger D. Peng wrote:
>
> > This doesn't happen with me.  When I startup the focus is on the
> > console.  I'm running
> >
> >  > version
> >          _
> > platform i386-pc-mingw32
> > arch     i386
> > os       mingw32
> > system   i386, mingw32
> > status
> > major    1
> > minor    7.1
> > year     2003
> > month    06
> > day      16
> > language R
> >  >
> >
> > on Windows XP Home.  Maybe you have something else running in the
> > background?
> >
> > -roger
> >
> > kjetil brinchmann halvorsen wrote:
> >
> > >Hola!
> > >
> > >Starting with rw1071, just after starting Rgui the scope is not with
> > >Rconsole, but some other place. This means I have to do a mouse click
> > >in the Rconsole before starting to write the first command. Since I
> > >always forget this, I end up writing the first command twice.
> > >
> > >This is of course only a minor nuisance, but why is focus no longer
> > >set to Rconsole window when start-up?
> > >
> > >This is on windows XP.
> > >(pre-compiled binary from CRAN)
> > >
> > >Kjetil Halvorsen
> > >
> > >______________________________________________
> > >[EMAIL PROTECTED] mailing list
> > >https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> > >
> > >
> > >
> > >
> >
> > ______________________________________________
> > [EMAIL PROTECTED] mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >
>
> --
> 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, UK                Fax:  +44 1865 272595
>

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

----------------------------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario, Canada L8S 4M4 email: [EMAIL PROTECTED] phone: 905-525-9140x23604 web: www.socsci.mcmaster.ca/jfox

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to