Search notes:

R: connection class to access external data

R can access external data (such as data in Excel, databases, csv files etc.) through the connection class.
An object whose type is connection might be created with stdin(), stdout or stderr():
conn_one   <- stdin()
conn_two   <- stdout()
conn_three <- stderr()

class(conn_one)
# [1] "terminal"   "connection"

class(conn_two)
# [1] "terminal"   "connection"

class(conn_three)
# [1] "terminal"   "connection"
Github repository about-r, path: /classes/connection/create-connection.R

See also

Import data into R for processing
textConnection()
R classes

Index