reconnect: Refresh Connection

View source: R/connection.R

reconnectR Documentation

Refresh Connection

Description

Refresh the connection object in case auth token expires.

Usage

reconnect(conn)

Arguments

conn

A connection object created by the connect function.

Details

This function will re-use the stored connection credentials in the connection object to regenerate the authentication token.

Value

A refreshed connection object like the one returned by connect

Examples

## Not run: 
con <- connect("joe.bloggs", "mypassword")
sys.Sleep(3600)
con <- reconnect(con)

## End(Not run)


ge-flight-analytics/Rems documentation built on May 17, 2023, 8:02 a.m.