Quantcast

Cannot load irr package

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Cannot load irr package

Rick Bilonick-3
The irr package seems to install correctly:

> install.packages("irr")
trying URL 'http://cran.us.r-project.org/src/contrib/irr_0.61.tar.gz'
Content type 'application/x-tar' length 13848 bytes
opened URL
==================================================
downloaded 13Kb

* Installing *source* package 'irr' ...
** R
** data
** help
 >>> Building/Updating help pages for package 'irr'
     Formats: text html latex example
  agree                             text    html    latex   example
  anxiety                           text    html    latex   example
  diagnoses                         text    html    latex   example
  finn                              text    html    latex   example
  icc                               text    html    latex   example
  iota                              text    html    latex   example
  kappa2                            text    html    latex   example
  kappam.fleiss                     text    html    latex   example
  kappam.light                      text    html    latex   example
  kendall                           text    html    latex   example
  maxwell                           text    html    latex   example
  meancor                           text    html    latex   example
  meanrho                           text    html    latex   example
  print.icclist                     text    html    latex   example
  print.irrlist                     text    html    latex   example
  robinson                          text    html    latex   example
  video                             text    html    latex   example
** building package indices ...
* DONE (irr)

The downloaded packages are in
        /tmp/RtmpsZJJ1h/downloaded_packages



But it won't load. Any ideas?

> library(irr)
Error in parse(n = -1, file = file) : invalid multibyte character in
mbcs_get_next
Error: unable to load R code in package 'irr'


Thanks.

Rick B.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Cannot load irr package

Phil Spector
Rick -
   You didn't say what operating system you're using, but I suppose
that it's UNIX-based, because you're using the tar.gz files.
   If this is the case, the problem can be resolved by setting the
environmental variable LANG to an empty string.  If you're currently
just typing "R" at the shell prompt, try

env LANG= R

(notice that you're setting LANG to an empty string, not to  "R").
If you have access to the script that's invoked when you type R, you
could set the environmental variable there to make the change permanent.

                                       - Phil Spector
                                         Statistical Computing Facility
                                         Department of Statistics
                                         UC Berkeley
                                         [hidden email]


On Tue, 16 May 2006, Rick Bilonick wrote:

> The irr package seems to install correctly:
>
> > install.packages("irr")
> trying URL 'http://cran.us.r-project.org/src/contrib/irr_0.61.tar.gz'
> Content type 'application/x-tar' length 13848 bytes
> opened URL
> ==================================================
> downloaded 13Kb
>
> * Installing *source* package 'irr' ...
> ** R
> ** data
> ** help
>  >>> Building/Updating help pages for package 'irr'
>      Formats: text html latex example
>   agree                             text    html    latex   example
>   anxiety                           text    html    latex   example
>   diagnoses                         text    html    latex   example
>   finn                              text    html    latex   example
>   icc                               text    html    latex   example
>   iota                              text    html    latex   example
>   kappa2                            text    html    latex   example
>   kappam.fleiss                     text    html    latex   example
>   kappam.light                      text    html    latex   example
>   kendall                           text    html    latex   example
>   maxwell                           text    html    latex   example
>   meancor                           text    html    latex   example
>   meanrho                           text    html    latex   example
>   print.icclist                     text    html    latex   example
>   print.irrlist                     text    html    latex   example
>   robinson                          text    html    latex   example
>   video                             text    html    latex   example
> ** building package indices ...
> * DONE (irr)
>
> The downloaded packages are in
>         /tmp/RtmpsZJJ1h/downloaded_packages
>
>
>
> But it won't load. Any ideas?
>
> > library(irr)
> Error in parse(n = -1, file = file) : invalid multibyte character in
> mbcs_get_next
> Error: unable to load R code in package 'irr'
>
>
> Thanks.
>
> Rick B.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Cannot load irr package

Rick Bilonick-3
On Tue, 2006-05-16 at 13:51 -0700, Phil Spector wrote:

> Rick -
>    You didn't say what operating system you're using, but I suppose
> that it's UNIX-based, because you're using the tar.gz files.
>    If this is the case, the problem can be resolved by setting the
> environmental variable LANG to an empty string.  If you're currently
> just typing "R" at the shell prompt, try
>
> env LANG= R
>
> (notice that you're setting LANG to an empty string, not to  "R").
> If you have access to the script that's invoked when you type R, you
> could set the environmental variable there to make the change permanent.
>
>                                        - Phil Spector

Thanks. That solves the problem but why is it necessary? (I'm using FC4
and R version 2.3.0.)

Rick B.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Cannot load irr package

Prof Brian Ripley
On Tue, 16 May 2006, Rick Bilonick wrote:

> On Tue, 2006-05-16 at 13:51 -0700, Phil Spector wrote:
>> Rick -
>>    You didn't say what operating system you're using, but I suppose
>> that it's UNIX-based, because you're using the tar.gz files.
>>    If this is the case, the problem can be resolved by setting the
>> environmental variable LANG to an empty string.  If you're currently
>> just typing "R" at the shell prompt, try
>>
>> env LANG= R
>>
>> (notice that you're setting LANG to an empty string, not to  "R").
>> If you have access to the script that's invoked when you type R, you
>> could set the environmental variable there to make the change permanent.

This isn't really portable, but LANG=C is.

>>                                        - Phil Spector
>
> Thanks. That solves the problem but why is it necessary? (I'm using FC4
> and R version 2.3.0.)

Presumably because the package author used non-ASCII text in his package.
The problem is in file meancor.R, which contains R followed by the
character 0xd8.

As the posting guide advised in the first place, please take this up with
the package maintainer.

--
Brian D. Ripley,                  [hidden email]
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Loading...