Install Teradata R Package - 17.00 - Installing Teradata R Package - Teradata R Package

Teradata® R Package User Guide

prodname
Teradata R Package
vrm_release
17.00
created_date
November 2020
category
User Guide
featnum
B700-4005-090K

The Teradata R package, tdplyr, is available from Teradata GitHub site https://github.com/Teradata/tdplyr.

The Teradata R package depends on the dplyr, dbplyr, DBI, magrittr, rlang, jsonlite, bit64, purrr packages which are available from CRAN and the Teradata SQL Driver for R package teradatasql which is available from Teradata GitHub repository and https://downloads.teradata.com/.

The Teradata R package is incompatible with dbplyr 2.0.0 which has new updates that break tdplyr features. To use tdplyr, the version of dbplyr package must be 1.4.4. tdplyr should be installed using the following steps, till a new version of tdplyr that is compatible with dbplyr 2.0.0 is released.

Run the following commands from your Terminal (for Linux and Mac) or Command Prompt (for Windows):

  1. Ensure dbplyr 1.4.4 is installed.
    There are various ways to install a specific version of an R package. Teradata recommends using the following command:
    > Rscript -e "remotes::install_version('dbplyr', version = '1.4.4', repos = 'https://cloud.r-project.org')"
    To run this command, the R package remotes should be present on the client machine.
  2. Install tdplyr.
    To download and install the tdplyr package automatically, if minimum required version is not met, specify the Teradata Amazon AWS repository and CRAN in the repos argument for install.packages.
    > Rscript -e "install.packages('tdplyr',repos=c('https://teradata-download.s3.amazonaws.com','https://cloud.r-project.org'))"
Both commands are applicable to all supported OS platforms.