Run the pioneeR app on your local machine.
Arguments
- x
A data frame that should be loaded with the app. See details.
- port
Integer. The TCP port that the application should listen on.
- ...
Other arguments to send to
shiny::runApp()
.
Details
Note that pioneeR must be loaded into the namespace with library(pioneeR)
before you run the pioneeR app.
You can load a data object in your current environment to the app. You can pass
a data frame or a character string with the object name of the data frame you
want to be loaded when the app launches. Note that you should only use data
frame objects. If you have a tibble (from the tidyverse) or a data table, you
can convert to an ordinary data.frame using as.data.frame()
Examples
# Only run this example in interactive R sessions
if (interactive()) {
df = deaR::Electric_plants
# Load app with data.frame and set port to 8080
run_pioneer(x = df, port = 8080)
}