| Version 7 (modified by , 10 years ago) (diff) | 
|---|
Home 
 
TOL 
 Software 
 Download 
 Installation 
 Packages 
 OTAN 
 
TOL Project 
 About TOL 
 Manuals 
 Development 
 R-Projects 
 
Other Links 
 Trac Guide 
 Wiki Tree 
 MMS  
TOL+R
From TOL 3.3 onwards, TOL provides a natural communication with R.
Two packages allow us to do than (tolRlink for R) and (TolRInside for TOL).
The title TOL+R represents this set of developments that allows the integration of R in TOL and viceversa.
To take advantage of these functionalities is necessary to perform a proper installation. See below for more details.
Installation
TOL+R requires, besides the both softwares: TOL and R, some additional packages or libraries.
Follow the instrucctions below:
Install TOL
Install TOL (GNU-GCC compiled) version 3.3 onwards (if you have not already done so). See Download.
Environment variables (for Windows)
For the communication with TOL from R is necessary the environment variable TOLGNU_ROOT (TOLGNU_ROOT_64 for TOL 64-bits) containing the TOL 'installation' folder.
- TOL 'installation' folder: 
 %PROGRAMFILES%\Tol-Project\tol-gnu-v3.3
 ('program files' folder and version number may be different).
This environment variable is automatically generated during the installation process.
Install R
Install the statistical software R. See https://www.r-project.org.
It is recommended R version 3.2 onwards. Specifically R version 3.2.0 has been tried and successfully tested: R 3.2.0
If you use TOL 32-bits, you must install (at least) the R 32-bits version.
Environment variables (for Windows)
TOL (for Windows) needs an environment variable named R_HOME containing the R 'installation' folder. 
- R 'installation' folder: 
 %PROGRAMFILES%\R\R-3.2.0
 (version number may be different)
For example:
SETX R_HOME %PROGRAMFILES%\R\R-3.2.0
Is is also recommended, add R bin folder to the environment variable PATH. This allows some TOL packages (builded before TOL+R) to find R. To do that, you should ensure that the R 'bin' folder is in the environment variable PATH.
- R 'bin' folder: 
 %PROGRAMFILES%\R\R-3.2.0\bin
 (version number may be different)
You can edit the environment variable PATH as usual. For example:
SETX PATH %PATH%;%PROGRAMFILES%\R\R-3.2.0
R packages
There are two sets of R-packages used from TOL:
- The R-packages that TOL uses traditionally from the command line. 
 
See: Install some R-packages.
- The R-packages needed to use TOL from R. 
 
See: Rprojects:Installation.
Altogether:
# 1st set
install.packages("quadprog")
install.packages("coda") # imports: lattice
install.packages("mcgibbsit") # depends: coda
install.packages("slam")
install.packages("Rglpk") # depends: slam
# 2nd set
install.packages("lubridate")
install.packages("polynom")
install.packages("base64enc")
# TOL Project developed
install.packages("https://www.tol-project.org/svn/tolp/Rprojects/tolBasis_1.1.zip", repos=NULL, type="binary")
install.packages("https://www.tol-project.org/svn/tolp/Rprojects/tolRlink_1.0.zip", repos=NULL, type="binary")
install.packages("https://www.tol-project.org/svn/tolp/Rprojects/tolKit_1.1.zip", repos=NULL, type="binary")
TOL packages
For the communication from TOL with R there is an only specific package: TolRInside. This can be installed and loaded as usual:
#Require TolRInside;

