Learn R Programming

outsider.base (version 0.1.4)

server_connect: Connect to a server

Description

Connect to a server, make accessible to outsider and set-up for outsider interaction.

Usage

server_connect(session)

Arguments

session

ssh session, see `ssh::ssh_connect`.

Value

logical

Details

This requires installation of ssh package.

See Also

Other public-server: server_disconnect()

Examples

Run this code
# NOT RUN {
library(outsider.base)

# NOT RUN
# }
# NOT RUN {
if (requireNamespace("ssh", quietly = TRUE)) {
  session <- ssh::ssh_connect(host = '[INSERT HOST IP]')
  server_connect(session = session)
  # run outsider.base commands, when finished
  server_disconnect()
}
# }

Run the code above in your browser using DataLab