https://github.com/sankhadeepdutta/modulecreateR
A simple R package to ease and streamline the task of creating shiny modules
https://github.com/sankhadeepdutta/modulecreateR
Last synced: 7 months ago
JSON representation
A simple R package to ease and streamline the task of creating shiny modules
- Host: GitHub
- URL: https://github.com/sankhadeepdutta/modulecreateR
- Owner: sankhadeepdutta
- License: mit
- Created: 2024-02-18T14:17:11.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-24T08:30:45.000Z (over 1 year ago)
- Last Synced: 2024-08-13T07:11:12.158Z (10 months ago)
- Language: R
- Size: 141 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - sankhadeepdutta/modulecreateR - A simple R package to ease and streamline the task of creating shiny modules (R)
README
# modulecreateR
## Overview
The goal of modulecreateR is to provide a fast and friendly way to create multiple R shiny module templates at once.## Installation
```{r, eval = FALSE}
# The easiest way to install modulecreateR:
devtools::install_github("https://github.com/sankhadeepdutta/modulecreateR")
```## Usage
```{r}
library(modulecreateR)
create_modules()
```## Example
```{r}
create_modules()
Current working directory: D:/test
Enter the (relative) path where you want to save the files: views
Enter the number of files to create: 1
Enter the name of file 1: Card
Enter content type (default/named): named
File Card.R created successfully.
```
## named and default content
Both 'named' and 'default' content type generates same code template for the modules. The only difference is, for the 'default' content type, the ui and and server object names are 'ui' and 'server' respectively, whereas, for the 'named' content type, the ui and server object names are 'filenameUI' and 'filenameServer' respectively, where the 'filename' refers to the name of that respective module.## Important notes
- Provide only relative path, in case you want to put the modules in the working directory, enter the value "./"
- While providing the names of the modules, do not use the ".R" file extension, it is taken care of automatically.