Hello everybody, Could I consult you a question? I always use R old version 1.9.1 . Because I can not add my library into the new version 2.0.0 by the same method as old version. * I have read the webpage <http://www.stats.ox.ac.uk/pub/Rtools> * Download the tools.zip * Unpack tools.zip into c:\cygwin * Install Active Perl in c:\Perl * Install the mingw32 port of gcc in c:\mingwin * Then go to "Control Panel -> System -> Advanced -> Environment Variables -> Path -> Variable Balue" add ;c:\cygwin;c:\mingwin\bin * Save my library "example" into "c:\MyRpackages\" . But I am not sure what type it is, is it need suffix?" And I don't what its content, just my function script, no special format? * Then I don't know where should I do this step: Type R CMD INSTALL --build example. Need I run R first? So There is a error after I do this step. It said it can not find somethig. I don't which step is wrong. It costed me much time. Could anyone help me to settle this problems? Thanks very much! Best Regards! Ivy Li仯仺伬侇佽仭仯仼 YMS in Production & Testing Semiconductor Manufactory International(ShangHai) Corporation #18 ZhangJiang Road, PuDong New Area, Shanghai, China Tel: 021-5080-2000 *11754 Email: Ivy_Li at smics.com
On 6/5/05, Ivy_Li <Ivy_Li at smics.com> wrote:> Hello everybody, > Could I consult you a question? > I always use R old version 1.9.1 . Because I can not add my library into the new version 2.0.0 by the same method as old version.Getting the latest version of R is strongly recommended. The suggestions below all assume the latest version and may or may not work if you do not upgrade.> * I have read the webpage <http://www.stats.ox.ac.uk/pub/Rtools> > * Download the tools.zip > * Unpack tools.zip into c:\cygwin > * Install Active Perl in c:\Perl > * Install the mingw32 port of gcc in c:\mingwin > * Then go to "Control Panel -> System -> Advanced -> Environment Variables -> Path -> Variable Balue" add ;c:\cygwin;c:\mingwin\binYou may need to put these at the beginning of the path rather than the end. Also just as a check enter path at the console to make sure that you have them. You will likely have to start a new console session and possibly even reboot. Also you need the Microsoft Help Compiler, hhc. Suggest you reread the material on which tools you need.> * Save my library "example" into "c:\MyRpackages\" . But I am not sure what type it is, is it need suffix?" And I don't what its content, just my function script, no special format?In MyRPackages you would have a folder called example, in your case, that contains the package. Within folder example, you would have the DESCRIPTION file, the R folder, etc.> * Then I don't know where should I do this step: Type R CMD INSTALL --build example. Need I run R first?You don't have to run R first. You do need to make sure that R.exe can be found on your path or else use the absolute path name in referring to R. For example, if your path does not include R you could do something like this: cd \Program Files\R\rw2010 bin\R cmd install /MyRPackages/example Be sure to use forward slashes where shown above and backslashes where shown.> So There is a error after I do this step. It said it can not find somethig. I don't which step is wrong. It costed me much time. >Try all these suggestions including upgrading R and if that does not work try posting screen dumps of the actual errors you are getting.
Hi, Ivy_Li: I also had trouble adding libraries under recent versions of R. The new versions of R ask you to select a local CRAN mirror. Unfortunately, I was using XEmacs, which failed to pass on the request to select a local CRAN mirror and instead locked up. I started using RGui and have since been able to install and update packages as before. hope this helps. spencer graves Ivy_Li wrote:> Hello everybody, > Could I consult you a question? > I always use R old version 1.9.1 . Because I can not add my library into the new version 2.0.0 by the same method as old version. > * I have read the webpage <http://www.stats.ox.ac.uk/pub/Rtools> > * Download the tools.zip > * Unpack tools.zip into c:\cygwin > * Install Active Perl in c:\Perl > * Install the mingw32 port of gcc in c:\mingwin > * Then go to "Control Panel -> System -> Advanced -> Environment Variables -> Path -> Variable Balue" add ;c:\cygwin;c:\mingwin\bin > * Save my library "example" into "c:\MyRpackages\" . But I am not sure what type it is, is it need suffix?" And I don't what its content, just my function script, no special format? > * Then I don't know where should I do this step: Type R CMD INSTALL --build example. Need I run R first? > So There is a error after I do this step. It said it can not find somethig. I don't which step is wrong. It costed me much time. > > Could anyone help me to settle this problems? > Thanks very much! > > > > Best Regards! > Ivy Li仯仺伬侇佽仭仯仼 > YMS in Production & Testing > Semiconductor Manufactory International(ShangHai) Corporation > #18 ZhangJiang Road, PuDong New Area, Shanghai, China > Tel: 021-5080-2000 *11754 > Email: Ivy_Li at smics.com > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html