R and Python Transform Support
R and Python connectivity and transforms occur over TCP/IP network links.
- For R, Rserve is used.
- For Python, FastAPI is the recommended integration method for Linux systems, while Pyro4 (Python Remote Data Objects) can be used on either Windows or Linux.
R Integration
- Download R, install it, and the R Console ( http://cran.rstudio.com/ )
- Open the R Console.
- Install Rserve using the following command from within the R Console:
install.packages("Rserve")
- Initiatiate the Rserve library using the following command:
library(Rserve)
- Run Rserve by executing the following command:
Rserve()
Only steps 2, 4 & 5 need to be repeated when R connectivity is required.
Example:
NOTE: Connectivity by default is over Port 6311.
To enable authentication across the Rserve TCP/IP link:
- Create a password file (pwdfile.pwd)
Each line of the file should have the user and then the password.
Example:
user1 password1
user2 password2 - Create a configuration file with following parameters (rconfig.conf)
auth required
pwdfile [path of password file]Example:
remote enable
auth required
port 6311
pwdfile C:\\RIntegration\\pwdfile.pwd - Load the created configuration file (the default Rserve configuration file is still loaded, but its settings have lower priority) and run Rserve:
Rserve(args="--RS-conf [path of configuration file]")
Example:
Rserve(args="--RS-conf C:\\RIntegration\\rconfig.conf")
(c) 2013-2024 Altair Engineering Inc. All Rights Reserved.