LINGO was not able to establish a link to R. A link to the R package is required to use any of the R-interface functions, e.g, @RCMD. To establish a link, you will need to do the following
• | Install a version of R that has the same bit level (32 or 64 bits) as the copy of LINGO you are using. |
• | The R bin folder must be on the system path. Typically, the R bin folder will have a name like C:\R\R-<version number>\bin\x64 when running a 64-bit version of R on Windows. R most likely installed this folder name in your system path during installation, but, if not, you will need to modify the path to include this folder. |
• | The R_HOME environment variable must point to the main R folder. For instance, on Windows, if you enter the SET command in a command window, you should see something like the following: R_HOME=C:/R/R-<version>, where <version> is the version number of R. |
• | Finally, you must install the RInside library in your copy of R. You may do this by running R and then entering the command: install.packages("RInside"). You can verify the installation of RInside by entering the R command: library("RInside"). |