[Rd] Re: [R] Problem Compiling R-2.0.0 on Linux Alpha
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Sun Oct 17 13:53:15 CEST 2004
"Prasad, Rajiv" <Rajiv.Prasad at pnl.gov> writes:
> Thanks for the reply, Peter.
>
> The build is done in a clean directory, and --without-tcltk does not
> help. I thought it is much better to track this down and fix it anyway.
>
> Agreed there aren't too many Alphas out there anymore, but I plan to
> keep mine going for a while -- sweet machine. :-)
>
> So, I looked into the DESCRIPTION file for package tcltk, and here it
> is:
>
> [rajiv at localhost tcltk]$ more DESCRIPTION
> Package: tcltk
> Version: 2.0.0
> Priority: base
> Title: Tcl/Tk Interface
> Author: R Development Core Team
> Maintainer: R Core Team <R-core at r-project.org>
> Description: Interface and language bindings to Tcl/Tk GUI elements
> License: GPL Version 2 or later.
> Built: R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37;
> unix
...
> I'm going to manually edit the DESCRIPTION files and remove the newlines
> and continue with make from the point where it stopped previously.
> We'll see if that fixes it. Will edit .split_description to include the
> print statements you mentioned.
This would seem to be a bug, somewhere...
> db[,"Built"] <- "R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37; unix"
> db
Package Version Priority Title Author
[1,] "tcltk" "2.0.0" "base" "Tcl/Tk Interface" "R Development Core Team"
Maintainer
[1,] "R Core Team <R-core at r-project.org>"
Description
[1,] "Interface and language bindings to Tcl/Tk GUI elements"
License
[1,] "GPL Version 2 or later."
Built
[1,] "R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37; unix"
> write.dcf(db,file="YYYY")
> read.dcf("YYYY")
Package Version Priority Title Author
[1,] "tcltk" "2.0.0" "base" "Tcl/Tk Interface" "R Development Core Team"
Maintainer
[1,] "R Core Team <R-core at r-project.org>"
Description
[1,] "Interface and language bindings to Tcl/Tk GUI elements"
License
[1,] "GPL Version 2 or later."
Built
[1,] "R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37;\nunix"
which jives really badly with the
if (!is.na(Built <- db["Built"])) {
Built <- as.list(strsplit(Built, "; ")[[1]])
names(Built) <- c("R", "Platform", "Date", "OStype")
Built[["R"]] <- package_version(sub("^R ([0-9.]+)", "\\1",
Built[["R"]]))
}
inside tools:::.split_description .
This is not an architecture-specific bug at all, it just happens to be
tickled by the specific length of "alphapca56-unknown-linux-gnu"!
I'm unsure whether the problem is in read.dcf or whether
split_description could just use strsplit(Built, ";[ \n]") and begone
with it. The latter should be a workaround for you in either case.
[Moved from r-help to r-devel]
-p
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-devel
mailing list