Description Usage Arguments Value Examples
Defines the parameters required to connect to a router on an OTP instance and, if required, confirms that the instance and router are queryable.
1 2 3 4 5 6 7 8 | otp_connect(
hostname = "localhost",
router = "default",
port = 8080,
tz = Sys.timezone(),
ssl = FALSE,
check = TRUE
)
|
hostname |
A string, e.g. "ec2-34-217-73-26.us-west-2.compute.amazonaws.com". Optional, default is "localhost". |
router |
A string, e.g. "UK2018". Optional, default is "default". Do not specify for OTPv2 which does not support named routers. |
port |
A positive integer. Optional, default is 8080. |
tz |
A string, containing the time zone of the router's graph. Optional.
This should be a valid time zone (checked against vector returned by
'OlsonNames()'). For example: "Europe/Berlin". Default is the timezone of the
current system (obtained from |
ssl |
Logical, indicates whether to use https. Optional, default is FALSE. |
check |
Deprecated and has no effect. |
Returns S3 object of class otpconnect if reachable.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.