teal.connectors.ssh
: teal
connector to access data via SSH
The teal.connectors.ssh
package allows SSH data to be pulled into teal
applications.
The app developer can be used as a teal_data_module
in your teal
application.
utils::read.csv
as the default.
ssh_connector
call will be passed to this function.For an example as to how this works see the example app in the help page: help(ssh_connector)
.
install.packages("teal.connectors.ssh", repos = c("https://insightsengineering.r-universe.dev", getOption("repos"))))
# install.packages("pak")
pak::pak("insightsengineering/teal.connectors.ssh@*release")
Alternatively, you might also use the development version.
install.packages("teal.connectors.ssh", repos = c("https://pharmaverse.r-universe.dev", getOption("repos")))
# install.packages("pak")
pak::pak("insightsengineering/teal.connectors.ssh")
library(teal.connectors.ssh)
x <- ssh_connector(
paths = list(ADSL = "/path/to/ADSL.csv", ADTTE = "/path/to/ADTTE.csv"),
host = "example.com:22"
)
app <- teal::init(data = x, modules = list(teal::example_module()))
shiny::shinyApp(app$ui, app$server)