td_get_context | Teradata Package for R - td_get_context - Teradata Package for R

Teradata® Package for R User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for R
Release Number
17.20
Published
March 2024
Language
English (United States)
Last Update
2024-04-09
dita:mapPath
efv1707506846369.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
nqx1518630623256
Product Category
Teradata Vantage

Use the td_get_context function to retrieve a named list of attributes in an existing context.

Example

td_create_context(dsn = "TeradataDSN")
context <- td_get_context()
 
# To retrieve the connection in the current context, use
td_get_context()$connection
 
# To retrieve the temorary database in the current context, use
td_get_context()$temp.database
 
# To retrieve the default database in the current context, use
td_get_context()$database
 
td_remove_context()