Re: [Rd] Can't load XML_1.4-0.zip in last R devel

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat 06 Jan 2007 - 08:10:51 GMT

The package source file XML/R/zzz.R contains

      temp <- Sys.getenv("PATH")
  ...

      on.exit(Sys.putenv(temp))

and ?Sys.putenv says

Usage:

      Sys.putenv(...)

      ...: arguments in 'name=value' form, with 'value' coercible to a
           character string.

so I believe this needs (and needed) to be Sys.putenv(PATH=temp).

In 2.4.1 it fails to reset the path which was apparently the intention. Now, my belief is that this kludge is no longer necessary as library() does the appropriate PATH setting (and uses Sys.putenv correctly).

It would have been helpful to make use of R's debugging tools yourself: this was not at all hard to find and not an R-devel issue AFAICS.

On Fri, 5 Jan 2007, Herve Pages wrote:

> Hi,
>
> I can't load XML_1.4-0.zip in last R devel (Windows):
>
> R version 2.5.0 Under development (unstable) (2007-01-05 r40386)
> Copyright (C) 2007 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
> Natural language support but running in an English locale
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
> > install.packages('XML')
> --- Please select a CRAN mirror for use in this session ---
> trying URL 'http://cran.fhcrc.org/bin/windows/contrib/2.5/XML_1.4-0.zip'
> Content type 'application/zip' length 1647612 bytes
> opened URL
> downloaded 1608Kb
>
> package 'XML' successfully unpacked and MD5 sums checked
>
> The downloaded packages are in
> C:\Documents and Settings\biocbuild\Local
> Settings\tmpdir\RtmpXybdrb\downloaded_packages
> updating HTML package descriptions
> > library(XML)
> Error in Sys.putenv(names(x), as.character(unlist(x))) :
> wrong type for argument
> Error: .onLoad failed in 'loadNamespace' for 'XML'
> Error: package/namespace load failed for 'XML'
> >
>
>
> I don't get this with R devel from 2006-12-05:
>
> R version 2.5.0 Under development (unstable) (2006-12-05 r40126)
> Copyright (C) 2006 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
> Natural language support but running in an English locale
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
> > install.packages('XML')
> --- Please select a CRAN mirror for use in this session ---
> trying URL 'http://cran.fhcrc.org/bin/windows/contrib/2.5/XML_1.4-0.zip'
> Content type 'application/zip' length 1647612 bytes
> opened URL
> downloaded 1608Kb
>
> package 'XML' successfully unpacked and MD5 sums checked
>
> The downloaded packages are in
> C:\Documents and Settings\biocbuild\Local
> Settings\tmpdir\RtmpaIcdrb\downloaded_packages
> updating HTML package descriptions
> > library(XML)
> >
>
>
> Cheers,
> H.
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley@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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sat Jan 06 19:14:14 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 06 Jan 2007 - 23:31:03 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.