Install Optional R Add-On Packages | Teradata VantageCore VMware - Installing Optional R Add-On Packages - Teradata VantageCore VMware

Teradata® VantageCore VMware - Base, Advanced, Enterprise Tiers Getting Started Guide

Deployment
VantageCore
Edition
VMware
Product
Teradata VantageCore VMware
Release Number
Deployer 4.0
Published
October 2023
ft:locale
en-US
ft:lastEdition
2023-10-31
dita:mapPath
gwx1617319441704.ditamap
dita:ditavalPath
nxb1617391283297.ditaval
dita:id
hrd1467245928404
Product Category
Cloud
To apply innovative statistical techniques to analyze data stored in Vantage, you have the option to install R add-on packages from Comprehensive R Archive Network (CRAN). After they are installed, a new library called pkg can be used within an R script.
  1. Go to http://cran.us.r-project.org/ to download the R add-on package from CRAN.
  2. Put the downloaded R add-on package into the /tmp directory on the primary (PDN) node.
  3. From the /tmp directory, run the td_installRaddon script.
    /opt/teradata/PUTTools/misc/td_RTblop/td_installRaddon pkgname
    The script wraps the file downloaded from the CRAN website into a PUT-installable .rpm file and places the .rpm file in the current working directory which is /tmp.
  4. Install the .rpm on all nodes using PUT or manually using rpm commands.
  5. Copy the rpm to all nodes.
    For MPP installations, put the package in the same common location on all nodes.
  6. Run one of the following commands:
    • Single-node system: rpm –ivh packagename.rpm
    • MPP system: psh rpm –ivh directory/packagename.rpm
  7. Using the R console, check if the package was installed correctly.