On Mon, Feb 21, 2011 at 10:40 AM, Simon Anders <anders@embl.de> wrote:

> Hi Vince
>
>
> On 02/21/2011 04:05 PM, Vincent Carey wrote:
>
>> At least in R 2.12, tcltk package source is in src/library of the source
>> R distribution.  There is no need to distribute it at CRAN AFAICT.
>>
>
> Yes, this explains it. Sorry for missing this obvious point.
>
>
> I didn't have the 'tk-dev' package installed on my Ubuntu when I compiled
> my R, so it was skipped, and I guess this is also the original poster's
> problem.
>
> (Not wanting to compile all of R again, I just tried to install the tcltk
> package separately from my R source tree but that does not seem entirely
> straight-forward, because the Makefile in there need to be regenerated from
> the global configure script, and simply re-running does not do the job. Ok,
> I guess rebuilding everything is not a big deal and easiest.)
>
>
> The remaining issue is that the installation of 'qvalue' gives this
> misleading error message:
>
>  Error : package 'tcltk' does not have a name space
>
>
I think this is inevitable since qvalue only imports tcltk -- there is no
need to attempt the load that generates the error you note below.  Whether R
should report that a package is not installed when an import is attempted
but the package is not installed seems to be an issue for R-core.


> Other packages, e.g., 'tckltk2', properly report:
>
>  Error in firstlib(which.lib.loc, package) :
>     Tcl/Tk support is not available on this system
>  Error : package 'tcltk' could not be loaded
>
>
> But, I guess, the best would be if John dropped the dependency on 'qvalue'.
> I don't suppose that we should take for granted that the average user has Tk
> available. (Is it bundled to the R installer for Windows?)
>
>
I wouldn't be surprised if there is a sizable user segment that uses the
widgets productively.  So users are encouraged to get their tcltk
infrastructure in order if they want the qvalue package.  It isn't too hard.
However, on my CentOs, after installing the infrastructure from source and
setting the configure variables properly ...

> capabilities()
    jpeg      png     tiff    tcltk      X11     aqua http/ftp  sockets
    TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE     TRUE
  libxml     fifo   cledit    iconv      NLS  profmem    cairo
    TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE
> library(qvalue)
> help(package=qvalue)
> qvalue.gui()
Error in qvalue.gui() : could not find function "tclVar"

# so is "Imports" enough?

> library(tcltk)
Loading Tcl/Tk interface ... done
Warning message:
In fun(...) : Can't find a usable tk.tcl in the following directories:
    /mnt/data/stvjc/ExternalSoft/TCL-DIST/lib/tcl8.5/tk8.5
/mnt/data/stvjc/ExternalSoft/TCL-DIST/lib/tk8.5 ./lib/tk8.5 ./library
This probably means that tk wasn't installed properly.
> qvalue.gui()
<Tcl>

At this point the gui looks good, despite what R has said about improper
installation ... but I am not pushing it further.  Whether I will take this
invitation to another half-hour of the interoperability blues is an open
question ...


> sessionInfo()
R version 2.13.0 Under development (unstable) (2011-02-21 r54514)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
[1] C

attached base packages:
[1] tcltk     stats     graphics  grDevices datasets  utils     methods
[8] base

other attached packages:
[1] qvalue_1.24.0


>  Simon
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>

	[[alternative HTML version deleted]]

