[R] tcltk problem

2006-09-20 Thread Dina Said
Hi,

I'm using fedora core 3. I downloaded R and installed it. 
 After that, I invoked R by the root user and write the 
 command install.packages(Rcmdr, dependencies=TRUE). This 
 command installs Rcmdr automatically. However, whenever I 
type library(Rcmdr), it tells me that Loading required 
 package: tcltk Error in firstlib(which.lib.loc, package) :
 Tcl/Tk support is not available on this system
 Error: package 'tcltk' could not be loaded
 

tcl and tk are installed on my system

The problem is that R can't find them as I guess

Please help me to solve this problem

__
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] tcltk problem

2006-09-20 Thread Prof Brian Ripley
On Wed, 20 Sep 2006, Dina Said wrote:

 Hi,

 I'm using fedora core 3. I downloaded R and installed it.
 After that, I invoked R by the root user and write the
 command install.packages(Rcmdr, dependencies=TRUE). This
 command installs Rcmdr automatically. However, whenever I
 type library(Rcmdr), it tells me that Loading required
 package: tcltk Error in firstlib(which.lib.loc, package) :
 Tcl/Tk support is not available on this system
 Error: package 'tcltk' could not be loaded


 tcl and tk are installed on my system

 The problem is that R can't find them as I guess

It is most likely that tcl and tk are installed, but tcl-devel and 
tk-devel are not.  See the 'R Installation and Administation' manual. 
Please install these RPMs if necessary, then re-install R, keeping a note 
of the output from configure.

(As far as I know this cannot happen if you installed the RPM, so am 
assuming that you built R from the sources: you omitted to tell us.)

-- 
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.


[R] tcltk problem

2004-12-23 Thread Liviu M Vladutu


Hi all,
I have R Version 2.1.0 installed on a box running Redhat Fedora Core 2.
When I try:
library()
it shows the package tcltk.

But if I try:
library(tcltk) I get the same error message like in this thread:
http://tolstoy.newcastle.edu.au/R/help/01c/3418.html

The same, tcl and tk are installed in /usr/lib; if I try:
capabilities(tcltk)

I get:
tcltk
FALSE

I cant' find tcltk.so
Any suggestions please?
Thx in advance and Merry Xmas!
Liviu

__
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


Re: [R] tcltk problem

2004-12-23 Thread Marc Schwartz
On Thu, 2004-12-23 at 11:32 -0500, Liviu M Vladutu wrote:
 
 Hi all,
 I have R Version 2.1.0 installed on a box running Redhat Fedora Core 2.

Are you really running 2.1.0 (which is an unreleased development
version) or are you running 2.0.1, which is the present released
version?

What does the banner indicate when you first start R?

How did you install R (compile from source or use one of Martyn's RPMS)?

Also, please run the following command from a console and post the
results back:

rpm -q tcl tcl-devel


 When I try:
 library()
 it shows the package tcltk.
 
 But if I try:
 library(tcltk) I get the same error message like in this thread:
 http://tolstoy.newcastle.edu.au/R/help/01c/3418.html
 
 The same, tcl and tk are installed in /usr/lib; if I try:
 capabilities(tcltk)
 
 I get:
 tcltk
 FALSE

As is indicated in the above post you referenced, this suggests that you
compiled from source, but R did not locate the requisite files during
the configure process.

 I cant' find tcltk.so

Run the following command in a console and post the results back:

locate tcltk.so

 Any suggestions please?
 Thx in advance and Merry Xmas!
 Liviu

Please provide the above information and we can help further.

Marc Schwartz

__
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


Re: [R] tcltk problem

2004-12-23 Thread Marc Schwartz
On Thu, 2004-12-23 at 11:32 -0600, Marc Schwartz wrote:
 On Thu, 2004-12-23 at 11:32 -0500, Liviu M Vladutu wrote:
  
  Hi all,
  I have R Version 2.1.0 installed on a box running Redhat Fedora Core 2.
 
 Are you really running 2.1.0 (which is an unreleased development
 version) or are you running 2.0.1, which is the present released
 version?
 
 What does the banner indicate when you first start R?

As a quick follow up here, this thread has been moved to r-devel under
the same subject as Liviu confirmed that 2.1.0 is indeed what was
installed.

Marc

__
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


Re: [R] tcltk problem with Button-2

2003-11-30 Thread Peter Dalgaard
Gabor Grothendieck [EMAIL PROTECTED] writes:

 But if I simply replace Control-Button-1 with Button-2 in the tkbind
 command, i.e. the last line, then nothing happens when I press 
 Button-2 (which I assume is the right mouse button).

It's the middle button (Tk was designed for three-button mice). The
right button is Button-3.

-- 
   O__   Peter Dalgaard Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics 2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark  Ph: (+45) 35327918
~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907

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


[R] tcltk problem with Button-2

2003-11-29 Thread Gabor Grothendieck


The following R code works as expected:

require( tcltk )
tt - tktoplevel()

# create a button labelled A that changes to B when pressed
pressed - function() tkconfigure( tt.but, text=B )
tt.but - tkbutton( tt, text=A, command=pressed )
tkpack(tt.but)

# if Control-Button-1 pressed change button label to C
e - expression( tkconfigure( tt.but, text=C ), break )
tkbind(tt.but, Control-Button-1, e )

But if I simply replace Control-Button-1 with Button-2 in the tkbind
command, i.e. the last line, then nothing happens when I press 
Button-2 (which I assume is the right mouse button).

I also tried removing the break and using a function instead of an
expression but it also does not respond, i.e. I tried replacing
the last line with:

tkbind(tt.but, Button-2, function() tkconfigure( tt.but, text=C ) ) 

I am using Windows 2000 and R 1.8.1 and am pasting the script 
into Rterm to make sure that the Rgui does not interfere with it.

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