Description Usage Arguments Details See Also Examples
View source: R/save_connection.R
The function writes the connection parameters into configuration file.
1 2 |
url |
Optional string argument. The url of ATSD with the port number. |
user |
Optional string argument. The user name. |
password |
Optional string argument. The user's password. |
verify |
Optional string argument – "yes" or "no".
|
encryption |
Optional string argument. Cryptographic protocol used by ATSD https server. Possible values are: "default", "ssl2", "ssl3", and "tls1" (In most cases, use "ssl3" or "tls1".) |
If you call save_connection()
without arguments,
then the current values of the connection parameters (including NAs)
will be written to the configuration file.
If you provide some arguments, they will be written
into the configuration file. If configuration file is absent
it will be created in the atsd package folder.
For more information about the configuration file
view the package vignette:
browseVignettes(package = "atsd")
.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Write the current values of the connection parameters to the configuration file
save_connection()
# Write the user name and the password to the configuration file
save_connection(user = "user001", password = "123456")
# Write all parameters nedeed for https connection to the configuration file
save_connection(url = "https://my.company.com:8443", user = "user001", password = "123456",
verify = "no", encryption = "ssl3")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.