Prof. Brian Ripley and Tal Galili, Thanks for your replies.
I cannot make the *install.packages("ei",repos="http://r.iq.harvard.edu", type='source')* command work. Alternatively, I can find the way (thanks to stackoverflow guys) I can install that file from a local repo. For the sake of record, I am summarizing the steps here, 1. Install R in root or home directory. Avoid Program Files directory. If you install it there then make sure you are running R in administrative privilege. 2. Install Rtools. During the installation please select "package authoring installation". Then in "Select additional Tasks", check both fields, ie. Edit the system path, Save version number 2.xx 3. Add path of R in the environment variable. To do that, right click the My Computer icon > Properties > Advanced system settings > Environment variables > find path and click edit > add the following line c:\R-2.12.1\bin\i386; (depending on the location you installed your R, you should edit the above line accordingly) After clicking ok, close all the terminals opened and then open a new terminal and type - path. It should give you an output including the following - PATH=c:\Rtools\bin; c:\Rtools\perl\bin; c:\Rtools\MinGW\bin; c:\Rtools\MinGW64\bin;c:\R-2.12.1\bin\i386; Depending on the software installed you will find other inputs, but the above are what you need. 4. Download the required package. Open a dos prompt. Go to the download directory and put the following command, R CMD INSTALL ei_0.938.tar.gz It will ask the dependencies Tal Galili mentioned. Install the dependencies. Try the command again. It should work then. Kind regards. On Thu, Jan 20, 2011 at 11:02 AM, Prof Brian Ripley <rip...@stats.ox.ac.uk>wrote: > On Thu, 20 Jan 2011, Tal Galili wrote: > > You probably need to get your users permissions (in win 7) set properly... >> > > I see no evidence that is the issue .... > > That site seems to be offering only source packages. So in Windows you > need > > install.packages("ei",repos="http://r.iq.harvard.edu", type='source') > > This can be done without Rtools in R >= 2.12.0. Note though that it > depends on other packages > > mvtnorm, msm, tmvtnorm, ellipse, plotrix, MASS, ucminf, cubature, > mnormt, foreach > > and those have dependencies (at least iterators), so I would install them > from CRAN first (MASS should already be there). > > >> >> ----------------Contact >> Details:------------------------------------------------------- >> Contact me: tal.gal...@gmail.com | 972-52-7275845 >> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | >> www.r-statistics.com (English) >> >> ---------------------------------------------------------------------------------------------- >> >> >> >> >> On Wed, Jan 19, 2011 at 8:26 PM, radagast <haseeb.mah...@gmail.com> >> wrote: >> >> >>> Hi all, >>> >>> I was trying to install a package called ei from this >>> http://gking.harvard.edu/eiR link . With GCC, r-base-dev and some other >>> R >>> package dependencies installed it works perfect in my Ubuntu Linux >>> system. >>> >>> Now I am trying to install the same in Windows 7 environment. So far my >>> setup is as follows, >>> >>> 1. R installed in home folder (c:\Users\username\R-2.12.1\R. It is set to >>> run as administrator, and the R folder is writable. >>> 2. My working directory is (c:\Users\username\Documents) >>> 3. Rtool is installed in (c:\Rtools) >>> >>> Having this setup, >>> >>> 4. I tried to install it by the command, >>> install.packages("ei",repos="http://r.iq.harvard.edu") >>> This command gives me the following error message. >>> >>> >>> >>> --------------------------------------------------------------------------------------------------- >>> Installing package(s) into >>> ?C:\Users\username\Documents/R/win-library/2.12? >>> (as ?lib? is unspecified) >>> Warning message: >>> In getDependencies(pkgs, dependencies, available, lib) : >>> package ?ei? is not available >>> >>> >>> --------------------------------------------------------------------------------------------------- >>> >>> After that I have decided to have a try to install it from a local zip >>> file, >>> so I proceeded in the following way, >>> >>> >>> 5. I have downloaded the package ei_0.938.tar.gz, untar it and make a zip >>> file from that. I placed it into my work directory. >>> 6. I opened the terminal (Run > cmd), went to the work directory and >>> tried >>> to run the command R COM INSTALL ei >>> >>> >>> >>> --------------------------------------------------------------------------------------------------- >>> It shows me the following error message, >>> C:\Users\username\Documents>R COM INSTALL ei >>> 'R' is not recognized as an internal or external command, >>> operable program or batch file. >>> >>> >>> --------------------------------------------------------------------------------------------------- >>> >>> I am not sure what should I do now. Is there anyone to help? >>> >>> >>> _ Rdgst. >>> >>> >>> -- >>> View this message in context: >>> >>> http://r.789695.n4.nabble.com/Installing-package-in-windows-7-tp3225439p3225439.html >>> Sent from the R help mailing list archive at Nabble.com. >>> >>> ______________________________________________ >>> R-help@r-project.org mailing list >>> https://stat.ethz.ch/mailman/listinfo/r-help >>> PLEASE do read the posting guide >>> http://www.R-project.org/posting-guide.html >>> and provide commented, minimal, self-contained, reproducible code. >>> >>> >> [[alternative HTML version deleted]] >> >> >> > -- > Brian D. Ripley, rip...@stats.ox.ac.uk > Professor of Applied Statistics, > http://www.stats.ox.ac.uk/~ripley/<http://www.stats.ox.ac.uk/%7Eripley/> > University of Oxford, Tel: +44 1865 272861 (self) > 1 South Parks Road, +44 1865 272866 (PA) > Oxford OX1 3TG, UK Fax: +44 1865 272595 > -- Haseeb Mahmud Phone: +4971312070163 (Home) +4917645398898 (Mobile) Website: http://www.nirpata.com [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.