I suspect one possible reason is that while I unzip the file .tar.gz, it destroys the structure between files as the manual indicated. But there seems no unix-like environment. I tried the cmd command, but it does not recognize tar command. Section 6.3 of the manual said that install.packages can install a source package from a local '.tar.gz' file by setting argument repos to NULL. But the manual did not tell me where to put this .tar.gz file in the first place. How do R find this file? Another idea is that I saw four .R files under the folder of R in the zip file. I suspect all necessary functions is defined in these four .R documents. So I ran them and tried a mini example of applying the function --------------------------------------------------------------------- cvec <- c(1,2,3) Amat <- matrix(c(-1,1,1,-1,3,-1),byrow=TRUE,nc=3) bvec <- c(20,-30) ub <- c(40,Inf,Inf) res <- Rcplex(cvec,Amat,bvec,ub=ub,objsense="max",sense=c('L','G')) print(res) ------------------------------------------------------------------------ This gives me the error message of ---------------------------------------------------------------------- Error in .Call("Rcplex", as.integer(numcols), as.integer(numrows), as.integer(objsensei), : C symbol name "Rcplex" not in load table Error in .C("Rcplex_free") : C symbol name "Rcplex_free" not in load table
------------------------------------------------------------------------------ ________________________________ From: Uwe Ligges <lig...@statistik.tu-dortmund.de> Cc: David Winsemius <dwinsem...@comcast.net>; "r-help@r-project.org" <r-help@r-project.org> Sent: Wednesday, February 22, 2012 4:04 AM Subject: Re: [R] installing the package Rcplex On 22.02.2012 03:33, zheng wei wrote: > Thanks. > > I was just reminded by the tech support in my university that cplex is an > independent software owned by ILOG, which in turn is now owned by IBM. I > suceeded in installing the software cplex under the directory of "C:/Program > Files/IBM/ILOG/CPLEX_Studio_Academic124/cplex" > I guess Rcplex is an R package to utilize the software cplex. I have changed > the path "/c/ilog/cplex111" to the above path. My question is how to finally > and effectively install the package of Rcplex? You have been asked alreeady to read the R Installation and Administration manual. Uwe Ligges > > Thanks, > Wei > > > > ________________________________ > From: Uwe Ligges<lig...@statistik.tu-dortmund.de> > Cc: David Winsemius<dwinsem...@comcast.net>; > "r-help@r-project.org"<r-help@r-project.org> > Sent: Tuesday, February 21, 2012 2:14 PM > Subject: Re: [R] installing the package Rcplex > > > > On 21.02.2012 19:57, zheng wei wrote: >> Thank you both for helping. Still could not figure out. >> >> I was contacting different supporting IT departments in my university but >> did not get any help. >> >> For the moment, I just want to what does the instruction of the package >> means. You could find this instruction on page >> http://cran.r-project.org/web/packages/Rcplex/INSTALL >> >>-------------------------------------------------------------------------------------------------- >> ***WINDOWS*** >> Installation on Windows systems is done by using the provided >> Makevars.win file in the src directory. It contains the following >> lines: >> PKG_CPPFLAGS=-I<CPLEX_DIR>/include >> PKG_LIBS=-L<CPLEX_DIR>/lib/x86_windows_vs2008/stat_mda -lcplex111 -lm >> where<cplex_dir> is the cplex installation directory >> e.g. /c/ilog/cplex111. Please edit your Makevars.win file accordingly. >> We have successfully tested this procedure with CPLEX 11.1 on 32-bit >> Windows XP. >> -------------------------------------------------------------------------------------------------- >> >> >> I can find the file and see the codes. But what new path should I put, and >> what to do next? > > The path to your CPLEX installation? > > Uwe Ligges > > > > >> >> Thanks, >> Wei >> >> >> ________________________________ >> From: Uwe Ligges<lig...@statistik.tu-dortmund.de> >> To: David Winsemius<dwinsem...@comcast.net> roject.org> >> Sent: Monday, February 20, 2012 6:01 AM >> Subject: Re: [R] installing the package Rcplex >> >> >> >> On 20.02.2012 01:54, David Winsemius wrote: >>> >>> On Feb 19, 2012, at 7:45 PM, zheng wei wrote: >>> >>>> I did not know this before. I installed it as you suggested. what to >>>> do next? >>> >>> Read the Installation Manual? >>> >> >> And don't forget this is a source package for which no CRAN Windows >> binary exists, hence it may be not that straightforward to get it done >> and you wil have to read the INSTALL file from the source package carefully. >> >> Uwe Ligges [[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.