[R] Install from source
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Fri Feb 9 00:28:23 CET 2001
Thomas Lumley <tlumley at u.washington.edu> writes:
> On Thu, 8 Feb 2001, Daniel A. Powers wrote:
>
> >
> > R -users --
> > I am new to R and trying to create Jim Lindsay's Nonlinear Regression and
> > Repeated Measures libraries. I have tried
> >
> > R CMD INSTALL file.tgz
> >
> > R says...
> >
> > ERROR: cannot extract package from file.tgz
> >
> > I have also tried build.
> >
>
> It's
> R INSTALL file.tgz
> but at least some of Jim Lindsey's packages won't install in .tgz form, so
> you may need to untar it first.
Both forms should work, but:
The .tgz form relies on the name of the file, specifically through
pkgname=`echo "${pkgname}" | sed 's/_.*//'`
which is not going to isolate the package name unless it is
immediately followed by "_". To fix it, presumably it would suffice
just to strip off .tgz and .tar.gz endings.
A quick workaround (apart from manual untarring) could be
mv file.tgz file_
R INSTALL file_
The slow workaround is to persuade Jim to put version numbers on his
packages...
--
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
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list