[R] cannot load package "splines"

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Dec 31 08:35:23 CET 2008


That is not what the message says: the actual error is on the last line. 
Try 'library(splines)' directly.

I suspect the issue is an encoding issue with mh1823, a package not known 
to us.  In particular, do you have any non-ASCII code in your package?
Check over the advice on portability issues in 'Writing R Extensions'.

On Tue, 30 Dec 2008, Charles Annis, P.E. wrote:

> Greetings R-Helpers:
>
>
>
> I am trying to help a Chinese colleague who is experiencing difficulty
> loading my package.  He is running WindowsXP and the Chinese version of
> R2.8.1.
>
>
>
> As you can see from his screen-copy (below), my package is successfully
> unpacked but cannot be loaded because splines balks when attempted to be
> loaded.  Package mh1823 requires package survival, which in turn requires
> splines.
>
>
>
>> utils:::menuInstallLocal()
> package 'mh1823' successfully unpacked and MD5 sums checked
> updating HTML package descriptions
>> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
> + if(nchar(pkg)) library(pkg, character.only=TRUE)})
> Loading required package: rcom
> Loading required package: rscproxy
> Loading required package: RODBC
> Loading required package: RColorBrewer
> Loading required package: survival
> Loading required package: splines
> Error in parse(n = -1, file = file) :
>  invalid multibyte character in parser at line 33
> 錯誤: unable to load R code in package 'mh1823'

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



More information about the R-help mailing list