https://github.com/mightymetrika/mmints
Workflows for Building Web Applications
https://github.com/mightymetrika/mmints
Last synced: 2 months ago
JSON representation
Workflows for Building Web Applications
- Host: GitHub
- URL: https://github.com/mightymetrika/mmints
- Owner: mightymetrika
- License: other
- Created: 2024-08-26T13:58:46.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-09-07T14:27:30.000Z (7 months ago)
- Last Synced: 2025-01-08T13:57:19.081Z (3 months ago)
- Language: R
- Homepage:
- Size: 41 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - mightymetrika/mmints - Workflows for Building Web Applications (R)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# mmints
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.
## Installation
You can install the released version of 'mmints' from [CRAN](https://CRAN.R-project.org):
```{r eval=FALSE}
install.packages("mmints")
```You can install the development version of 'mmints' from [GitHub](https://github.com/) with:
```{r eval=FALSE}
# install.packages("pak")
pak::pak("mightymetrika/mmints")
```## Example
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 typesHere's how to use the csvUploadModule:
```{r eval=FALSE}
library(mmints)csvUpload_app <- function(){
ui <- shiny::fluidPage(
shiny::titlePanel("CSV Upload Module"),
shiny::sidebarLayout(
shiny::sidebarPanel(
csvUploadUI("data_upload")$input
),
shiny::mainPanel(
csvUploadUI("data_upload")$output
)
)
)
server <- function(input, output, session) {
data <- csvUploadServer("data_upload")
}
shiny::shinyApp(ui, server)
}if(interactive()){
csvUpload_app()
}
```## License
This project is licensed under the MIT License.
## Contact
For any queries or suggestions, please open an issue on the GitHub repository.