Learn R Programming

pbdRPC (version 0.2-1)

machine: machine

Description

Remote machine configuration settings.

Usage

machine(hostname, user, exec.type = .pbd_env$RPC.LI$exec.type,
  args = .pbd_env$RPC.LI$args, pport = .pbd_env$RPC.LI$pport,
  priv.key = .pbd_env$RPC.LI$priv.key,
  priv.key.ppk = .pbd_env$RPC.LI$priv.key.ppk)

Arguments

hostname

the server ip or host name.

user

user id for logging to the server. If none is supplied, then the system user name will be used instead.

exec.type

either "ssh" or "plink" in character. Windows will force to use "plink".

args

further arguments to "ssh" or "plink" for connecting to the server in addition to port, user id, and host name.

pport

ssh port opened on the server.

priv.key, priv.key.ppk

location of the private key for user authentication, the file will be checked first then -i priv.key will be added to args when the file exists. priv.key.ppk is only used when plink is called.

Value

An object of class machine.

Examples

Run this code
# NOT RUN {
# note: not my actual aws url
myaws <- machine("ec2-1-2-3-4.compute-1.amazonaws.com", user="my_aws_username")

# if you don't specify 'user', we use your host machine's user name
myvm <- machine("192.168.1.10")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab