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

Teradata® R Package User Guide

Teradata R Package
November 2020
User Guide

The Teradata R package, tdplyr, is available from Teradata GitHub site

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

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 = '')"
    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('',''))"
Both commands are applicable to all supported OS platforms.