Jonathan Baron
2003-May-26 15:55 UTC
[R] "Tcl/Tk support is not available on this system, " RH 9, R 1.7.0-1
In trying to run John Fox's new Rcmdr package on Redhat Linux 9, I got this error message. The problem is in loading the tclck library. library(tcltk) produces the same error. It has been discussed before, e.g., http://finzi.psych.upenn.edu/R/Rhelp02/archive/11898.html but with respect to earlier versions of Linux and R. I tried updating to the latest RPMs of tcl and tk (8.3.5-89), but that didn't help. Otherwise I just have the standard RH9 installation. Has anyone gotten tcltk to work on RH9? Jon
Prof Brian Ripley
2003-May-26 16:17 UTC
[R] "Tcl/Tk support is not available on this system, " RH 9, R 1.7.0-1
How did you install R? `R-1.7.0-1' suggests a binary RPM, but we shouldn't have to guess. Tcl/Tk has to be present when R was configured. My guess is that was not so when your R was configured (I think RH8.0 and 9 by default don't have Tcl/Tk, and never have the current 8.4.1). In that case you need to build R yourself: always a good idea. It isn't clear to the rest of us what options the builders of binary RPMs include, and it would be helpful if the summary given at the end of configure was available on CRAN. On Mon, 26 May 2003, Jonathan Baron wrote:> In trying to run John Fox's new Rcmdr package on Redhat Linux 9, > I got this error message. The problem is in loading the tclck > library. library(tcltk) produces the same error. It has been > discussed before, e.g., > http://finzi.psych.upenn.edu/R/Rhelp02/archive/11898.html but > with respect to earlier versions of Linux and R. > I tried updating to the latest RPMs of tcl and tk (8.3.5-89), but > that didn't help. Otherwise I just have the standard RH9 > installation. Has anyone gotten tcltk to work on RH9?-- 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
Göran Broström
2003-May-26 16:17 UTC
[R] "Tcl/Tk support is not available on this system, " RH 9, R 1.7.0-1
On Mon, 26 May 2003, Jonathan Baron wrote:> In trying to run John Fox's new Rcmdr package on Redhat Linux 9, > I got this error message. The problem is in loading the tclck > library. library(tcltk) produces the same error. It has been > discussed before, e.g., > http://finzi.psych.upenn.edu/R/Rhelp02/archive/11898.html but > with respect to earlier versions of Linux and R. > I tried updating to the latest RPMs of tcl and tk (8.3.5-89), but > that didn't help. Otherwise I just have the standard RH9 > installation. Has anyone gotten tcltk to work on RH9?Yes.> > Jon > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >-- --- G?ran Brostr?m tel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Ume? University http://www.stat.umu.se/egna/gb/ SE-90187 Ume?, Sweden e-mail: gb at stat.umu.se
laurent buffat
2003-May-26 16:31 UTC
[R] callNextMethod & initialize & explicit parameters
Hello, I know that in general, it is better to call callNextMethod without arguments, and so the call is done with the current arguments, but I want explicitly change the value of a given argument, how can I do ? See the code. Why is doesn't work ? Thanks for your help Laurent Buffat /////////////////////// setClass("A", representation(a = "numeric")) setMethod("initialize", "A", function(.Object, a=1, ...) cat("initialize in A\n") .Object at a <- a return(.Object) }) setClass("B", representation(b = "numeric"),contains=c("A")) setMethod("initialize", "B", function(.Object, a=1, b=2, ...) { a.init <- b*b # or something more complexe ... .Object <- callNextMethod(.Object,a=a.init, ...) .Object at b <- b return(.Object) }) x <-new("B") /////////////////// error with new("B"). # The evaluation of "a=a.init" is done in the environment of initialize,A, and a.init doesn't exist # in this environment ... initialize in A Error in .local(.Object, ...) : Object "a.init" not found
John Fox
2003-May-26 16:39 UTC
[R] "Tcl/Tk support is not available on this system, " RH 9, R 1.7.0-1
Dear Jonathan, To clarify, I have verified that the Rcmdr package works under Linux 7.0 (after some updating). I'm an infrequent user of Linux, so have not upgraded my operating system. I hope that someone else will have a solution, since it's my goal to have Rcmdr work as broadly as possible. Thanks for the report, John At 11:55 AM 5/26/2003 -0400, Jonathan Baron wrote:>In trying to run John Fox's new Rcmdr package on Redhat Linux 9, >I got this error message. The problem is in loading the tclck >library. library(tcltk) produces the same error. It has been >discussed before, e.g., >http://finzi.psych.upenn.edu/R/Rhelp02/archive/11898.html but >with respect to earlier versions of Linux and R. >I tried updating to the latest RPMs of tcl and tk (8.3.5-89), but >that didn't help. Otherwise I just have the standard RH9 >installation. Has anyone gotten tcltk to work on RH9? > >Jon > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help____________________________ John Fox Department of Sociology McMaster University email: jfox at mcmaster.ca web: http://www.socsci.mcmaster.ca/jfox