showConnections(all = TRUE)
## Not run: ------------------------------------
# textConnection(letters)
# # oops, I forgot to record that one
# showConnections()
# #  class     description      mode text   isopen   can read can write
# #3 "letters" "textConnection" "r"  "text" "opened" "yes"    "no"
# mycon <- getConnection(3)
## ---------------------------------------------
c(isatty(stdin()), isatty(stdout()), isatty(stderr()))
Run the code above in your browser using DataLab