[R] Problem with capabilities() in R2-8.1

Simon Blomberg s.blomberg1 at uq.edu.au
Tue Mar 10 07:54:49 CET 2009


On Tue, 2009-03-10 at 06:50 +0000, Prof Brian Ripley wrote:
> capabilities("iconv") does work in R 2.8.1 on Window (for me and many, 
> many otherss, as well as on the machine that ran 'make check'), so you 
> have done something to your installation.  Most likely you have 
> somehow mixed it up with a much earliier version of R for which the 
> error message would have been true. so if you have any uch version 
> installed, please remove it.  Then try starting R with --vanulla, 
> since you may hav ebeen picking up libraries containing packages from 
> earlier versions.

Mmmmm. Vanulla. Arggggghhhhaaaa....

S.
> 
> On Mon, 9 Mar 2009, Marcus, Jeffrey wrote:
> 
> > I just installed R 2.8.1 on Windows XP. When I ran the "source" command,
> > I got the error:
> >
> > Error in capabilities("iconv") :
> >  1 argument passed to .Internal(capabilities) which requires 0
> >
> > I looked at the code for source and it indeed has a call to
> > capabilities("iconv")
> >
> > if (capabilities("iconv")) {
> >            if (identical(encoding, "unknown")) {
> >                enc <- utils::localeToCharset()
> >                encoding <- enc[length(enc)]
> >            }
> >
> >
> > So then I ran capabilities itself:
> >
> >
> >> capabilities("iconv")
> > Error in capabilities("iconv") :
> >  1 argument passed to .Internal(capabilities) which requires 0
> >
> > I made sure that I hadn't by accident aliased either "source" or
> > "capabilities" by doing
> > find("source")
> >
> > find ("capabilites")
> >
> > and both came back with package::base.
> >
> > Any help would be appreciated. Thanks.
> 
> That's only a partial test.  searchpaths() will show where you loaded 
> capabiliites() from.
> 
-- 
Simon Blomberg, BSc (Hons), PhD, MAppStat. 
Lecturer and Consultant Statistician 
School of Biological Sciences
The University of Queensland 
St. Lucia Queensland 4072 
Australia
Room 320 Goddard Building (8)
T: +61 7 3365 2506
http://www.uq.edu.au/~uqsblomb
email: S.Blomberg1_at_uq.edu.au

Policies:
1.  I will NOT analyse your data for you.
2.  Your deadline is your problem.

The combination of some data and an aching desire for 
an answer does not ensure that a reasonable answer can 
be extracted from a given body of data. - John Tukey.




More information about the R-help mailing list