The ‘mmints’ (Mighty Metrika Internals) package aims to automate tasks commonly used in ‘shiny’ applications. It primarily consists of internal functions and modules frequently utilized in other Mighty Metrika ‘shiny’ applications.
You can install the released version of ‘mmints’ from CRAN:
install.packages("mmints")
You can install the development version of ‘mmints’ from GitHub with:
# install.packages("pak")
::pak("mightymetrika/mmints") pak
One feature of ‘mmints’ is the csvUploadModule, which simplifies the process of: 1. Uploading a CSV data file 2. Displaying the variables and data types as a ‘DT’ data table 3. Providing functionality for editing variable types
Here’s how to use the csvUploadModule:
library(mmints)
<- function(){
csvUpload_app <- shiny::fluidPage(
ui ::titlePanel("CSV Upload Module"),
shiny::sidebarLayout(
shiny::sidebarPanel(
shinycsvUploadUI("data_upload")$input
),::mainPanel(
shinycsvUploadUI("data_upload")$output
)
)
)<- function(input, output, session) {
server <- csvUploadServer("data_upload")
data
}::shinyApp(ui, server)
shiny
}
if(interactive()){
csvUpload_app()
}
This project is licensed under the MIT License.
For any queries or suggestions, please open an issue on the GitHub repository.