


Now invoke RStudio from the terminal and do the package update (or installation if you are getting it for the first time) as normal.(I goofed on my first try by just specifying the path.) Note that what I am exporting includes the name of the executable (that last " cplex"), not just the path to it. This can be done using the export command, as in " export CPLEX_BIN=/home/paul//CPLEX_Studio201/cplex/bin/x86-64_linux/cplex". In a terminal, create an environment variable CPLEX_BIN containing that path (unless you already have one).In my case, the path was "/home/paul//CPLEX_Studio201/cplex/bin/x86-64_linux/cplex". What follows is how I got to work in Linux Mint, but the same steps should work with any Linux distribution and I assume can be modified to work on Windows or Mac OS. A recent list of packages waiting to be updated included Rcplex 0.3-4, but when I told RStudio to update them all it balked at Rcplex.

I use the RStudio IDE for almost everything related to R, including updating packages. A recent release (it's now at version 0.3-5) has made installation and updating much easier (no hacking of installer code required), provided you configure your environment correctly. Rcplex is a interface from R to the CPLEX optimization solver. This is an update to a previous post (" Installing Rcplex and cplexAPI").
