[R] How to upgrade library from R 1.9.1 to R 2.0.1

YiYao_Jiang
Thu, 17 Feb 2005 03:12:09 -0000

Dear All:

	I have a library for R 1.9.1, it is very easy to setup a library in R 1.9.1.
    For example:
    I want to setup a library "test" for R1.9.1.
    1. Create a folder "test" in the direct X:\ R\ rw1091\ library \.
    2. Create a file "DESCRIPTION" in the direct X:\ R\ rw1091\
library\ test\.
    3. Modify the "Package:" and "Title:" item to
"test" in the file "DESCRIPTION" .
    4.Create a folder "R" in the direct X:\ R\ rw1091\ library\ test\
.
    5.Create a file "test" in the direct X:\ R\ rw1091\ library\ test\
R\ .
    6. Add all the function into the "test" file.
    Then I can call the "test" using command " library (test)
".
    I setup the library using the same way in R2.0.1, but the library can't
work.
    The error message is " Error in library(test) : 'test' is not a
valid package -- installed < 2.0.0? "
    I search the help file and document but still can't upgrade the library.
    Who can tell me how to upgrade library from R 1.9.1 to R 2.0.1 or give me a
sample, thanks.




Best Regards
YiYao Jiang
Product Division/ Product Testing Department
Semiconductor Manufacturing International Corporation
18 ZhangJiang Road, PuDong New Area, Shanghai  ZIP: 201203
Tel:86-21-5080-2000 Ext. 15173