On Thu, 4 Jan 2001, S.McClatchie wrote:
> Colleagues
>
> I want to download the package "date" from CRAN
<http://cran.r-
> project.org/> to get the R-scripts (for version 1.2.0)
Um. It is package, not scripts, and needs to be installed as a package.
> *** date/INDEX ***
> as.date Coerce Data to Dates
> date.ddmmmyy Format a Julian date
> date.mdy Convert from Julian Dates to Month, Day, and Year
> date.mmddyy Format a Julian date
> date.mmddyyyy Format a Julian date
> date.object Date Objects
> mdy.date Convert to Julian Dates
>
> However, the clickable download from ver.1.2-5 gives me only two R files
> date.R
> zzz.R
So? All the R code is in those files.
> although I do get the help files for
> as.date.Rd
> date.ddmmmyy.Rd
> date.mdy.Rd
> date.mmddyy.Rd
> date.mmddyyyy.Rd
> date.object.Rd
> mdy.date.Rd
One you got that, you would need to be able to install it as a source
package, and I wonder if you have the means to do that, since you are
clearly on Windows?
> As an alternate method I tried using the install.packages function from R
>
> > install.packages("date","C:\Program Files\R
>
environment\rw1020\library\","http://www.r-project.org",method =
"auto",
> available = NULL, destdir = NULL)
> Error: syntax error
>
> but was not successful (I'm not sure why).
You need to specify paths with \\ or /, not \, in R quoted strings.
And you need to use cran.r-project.org (or a local mirror), not
www.r-project.org (looks like a documentation bug). Why set arguments that
you don't understand rather than use defaults?
If you have wget.exe installed, try just
install.packages("date")
or get the pre-compiled date.zip yourself from the Windows contrib area,
and read the Windows-specific documentation on how to install it
(just install.packages(".../date.zip") should do it).
--
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 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._