On Wed, Dec 24, 2014 at 12:37:08AM +0100, frantisek holop wrote: > frantisek holop, 23 Dec 2014 23:55: > > ok, i have found > > > > $ R CMD INSTALL --help > > and there is also > > R CMD build > and > R CMD INSTALL > > i managed to install lpSolve: > > get the R package 'lpSolve_5.6.10.tar.gz', and extract. > patch some files (remove sys/timeb.h) > $ R CMD build lpSolve > and install the resulting package > R CMD INSTALL lpSolve_5.6.10.tar.gz > > hope this helps someone. > > -f > -- > to my embarrassment, i was born in bed with a lady! >
Hi frantisek You solved it already, but just for the record, you can put a Makevars file on your ~/.R folder to help with some of these kind of problems, e.g. $ cat .R/Makevars CXXFLAGS=-Wall -pedantic LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include See http://cran.r-project.org/doc/manuals/r-release/R-admin.html#Customizing-package-compilation Cheers Zé --