Dear all I can not understand how to install the package lpsolve_1.1.9.zip I have read the FAQ and the help pages carefully, but it still not clear for me. I have tried the following (and obtained the respective error messages):>install.packages("c:/ProgramFiles/R/rw2011/library/lpSolve_1.1.9",destdir="c:/ProgramFiles/R/rw2011/library/lpSolve") Mensagem de aviso: no package 'c:/Program Files/R/rw2011/library/lpSolve_1.1.9' at the repositories in: download.packages(pkgs, destdir = tmpd, available = available,>install.packages("lpSolve_1.1.9",destdir="c:/ProgramFiles/R/rw2011/library/lpSolve") Erro em download.packages(pkgs, destdir = tmpd, available available, : 'destdir' is not a directory >install.packages("lpSolve_1.1.9",destdir=NULL) Mensagem de aviso: no package 'lpSolve_1.1.9' at the repositories in: download.packages(pkgs, destdir = tmpd, available = available, Could you please tell me how to do that or when can I find a simple example of that kind of installation? Thank you so much and sorry for such basic question. Sara Mouro [[alternative HTML version deleted]]
Sara, Could it be that you have to unzip the package? If you are using a PC you can probably find a free (or trial version) of one of many versions of unzip (e.g. WINZIP). If you are familiar with Unix, unzipping is similar to using TAR. John John Sorkin M.D., Ph.D. Chief, Biostatistics and Informatics Baltimore VA Medical Center GRECC and University of Maryland School of Medicine Claude Pepper OAIC University of Maryland School of Medicine Division of Gerontology Baltimore VA Medical Center 10 North Greene Street GRECC (BT/18/GR) Baltimore, MD 21201-1524 410-605-7119 - NOTE NEW EMAIL ADDRESS: jsorkin@grecc.umaryland.edu>>> "Sara Mouro" <sara@gmesintra.com> 10/14/05 5:44 AM >>>Dear all I can not understand how to install the package lpsolve_1.1.9.zip I have read the FAQ and the help pages carefully, but it still not clear for me. I have tried the following (and obtained the respective error messages):>install.packages("c:/ProgramFiles/R/rw2011/library/lpSolve_1.1.9",destdir="c:/ProgramFiles/R/rw2011/library/lpSolve") Mensagem de aviso: no package 'c:/Program Files/R/rw2011/library/lpSolve_1.1.9' at the repositories in: download.packages(pkgs, destdir = tmpd, available = available,>install.packages("lpSolve_1.1.9",destdir="c:/ProgramFiles/R/rw2011/library/lpSolve") Erro em download.packages(pkgs, destdir = tmpd, available available, : 'destdir' is not a directory >install.packages("lpSolve_1.1.9",destdir=NULL) Mensagem de aviso: no package 'lpSolve_1.1.9' at the repositories in: download.packages(pkgs, destdir = tmpd, available = available, Could you please tell me how to do that or when can I find a simple example of that kind of installation? Thank you so much and sorry for such basic question. Sara Mouro [[alternative HTML version deleted]] ______________________________________________ R-help@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 [[alternative HTML version deleted]]
Sara Mouro wrote:> Dear all > > I can not understand how to install the package lpsolve_1.1.9.zip > > I have read the FAQ and the help pages carefully, but it still not > clear for me. > > I have tried the following (and obtained the respective error > messages): > > > >>install.packages("c:/ProgramFiles/R/rw2011/library/lpSolve_1.1.9",destdir=" > > c:/ProgramFiles/R/rw2011/library/lpSolve") > Mensagem de aviso: > no package 'c:/Program > Files/R/rw2011/library/lpSolve_1.1.9' at the repositories in: > download.packages(pkgs, destdir = tmpd, available = available, > > > >>install.packages("lpSolve_1.1.9",destdir="c:/ProgramFiles/R/rw2011/library/ > > lpSolve") > Erro em download.packages(pkgs, destdir = tmpd, available > available, : > 'destdir' is not a directory > > >install.packages("lpSolve_1.1.9",destdir=NULL) > Mensagem de aviso: > no package 'lpSolve_1.1.9' at the repositories in: > download.packages(pkgs, destdir = tmpd, available = available, > > Could you please tell me how to do that or when can I find a simple > example of that kind of installation? > > Thank you so much and sorry for such basic question. > > Sara Mouro > > [[alternative HTML version deleted]]For example in the help pages, the manuals, the FAQ, and some R News article in the R Help Desk. Anyway, you simply want to say install.packages("lpSolve") to get a copy installed from CRAN or install.packages("C:/Path/to/Zip/File/Package_Version.zip", repos = NULL) to install a binary package you already got on your harddisk. Uwe Ligges> ______________________________________________ > 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
Dear Sara, It looks to me as if there are three problems here: (1) Is the zip file for the package really at "c:/ProgramFiles/R/rw2011/library/lpSolve_1.1.9"? That is, isn't there a space in "Program Files"? (2) You have to specify repos=NULL to install from a local zip file, as ?install.packages tells you. (3) You don't seem to be using the destdir argument correctly; you can omit it. Why not avoid all this and just use the R for Windows menus: Packages -> Install package(s) from local zip files? I hope this helps, John -------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox --------------------------------> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Sara Mouro > Sent: Friday, October 14, 2005 4:45 AM > To: r-help at stat.math.ethz.ch > Subject: [R] zip package > > Dear all > > I can not understand how to install the package > lpsolve_1.1.9.zip > > I have read the FAQ and the help pages carefully, but > it still not clear for me. > > I have tried the following (and obtained the respective error > messages): > > > >install.packages("c:/ProgramFiles/R/rw2011/library/lpSolve_1.1.9",destdir="> c:/ProgramFiles/R/rw2011/library/lpSolve") > Mensagem de aviso: > no package 'c:/Program > Files/R/rw2011/library/lpSolve_1.1.9' at the repositories in: > download.packages(pkgs, destdir = tmpd, available = available, > > > >install.packages("lpSolve_1.1.9",destdir="c:/ProgramFiles/R/rw2011/libr> >ary/ > lpSolve") > Erro em download.packages(pkgs, destdir = tmpd, > available = available, : > 'destdir' is not a directory > > >install.packages("lpSolve_1.1.9",destdir=NULL) > Mensagem de aviso: > no package 'lpSolve_1.1.9' at the > repositories in: > download.packages(pkgs, destdir = tmpd, available = available, > > Could you please tell me how to do that or when can I > find a simple example of that kind of installation? > > Thank you so much and sorry for such basic question. > > Sara Mouro > > [[alternative HTML version deleted]] > > ______________________________________________ > 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