问题
I am trying to link R with the IBM Cplex studio but unable to do so.
First I installed the Cplex studio on my desktop. Next I directly tried installing the 'Rcplex package' in R but got a configuration error. "configure: error: CPLEX include directory ./include does not exist:" Next I researched a bit to find the solution and found out that the Rcplex package requires the CPLEX include directory. I then tried to add arguments in the installation through Terminal but no success.
Source : https://cran.cnr.berkeley.edu/web/packages/Rcplex/INSTALL
R CMD INSTALL --configure-args="PKG_CFLAGS='-m64 -fPIC' PKG_CPPFLAGS=-I/Applications/CPLEX_Studio_Community129/cplex/include PKG_LIBS='-L/Applications/CPLEX_Studio_Community129/cplex/lib/x86-64_osx/static_pic -lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit'" Rcplex_0.3-0.tar
Error message received : "Warning: invalid package ‘Rcplex_0.3-0.tar’ Error: ERROR: no packages specified"
来源:https://stackoverflow.com/questions/56708929/how-to-install-rcplex-on-mac