td.debug.enable | Teradata R Package - 17.00 - td.debug.enable - 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 td.debug.enable is a boolean option which enables the user to understand and debug the steps happening while a call is made.

The default value is FALSE.

The following example shows the system output when this option is set to TRUE.

  • Set the option to TRUE.
    > options(td.debug.enable = TRUE)
  • Create tbl_teradata of the table 'computers_train1'. The system lists the steps while this call is made.
    > computers_train1 <- tbl(con, "computers_train1")
    
    In db_query_fields.Teradata(src$con, from):
    db_query_fields(src$con, from):
    vars %||% db_query_fields(src$con, from):
    tbl_sql(c('teradata', 'dbi'), src = src, from = from, ...):
    tbl.src_Teradata(src_teradata(src), from, ...):
    tbl(src_teradata(src), from, ...):
    tbl.Teradata(con, 'computers_train1'):
    tbl(con, 'computers_train1'):
    [tdplyr - (TDR_E1001)] Ignoring query:
    [tdplyr - (TDR_E1001)] Describe Columns given query/table/view: computers_train1
    >
In contrary, if this option is set to default value of FALSE, system runs the call without showing the steps.
  • Set the options to FALSE.
    > options(td.debug.enable = FALSE)
  • Create tbl_teradata of the table 'computers_train1'. The system runs the call without showing the steps.
    > computers_train1 <- tbl(con, "computers_train1")
    >