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/.
Run the following commands from your Terminal (for Linux and Mac) or Command Prompt (for Windows):
- 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.
- 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'))"