You can also develop mini-apps offline on your own machine before uploading it your workspace via SFTP. To make this possible, your mini-app must follow a certain structure and be archived as a .zip file.
First, create a .zip file with the following structure:
- mini-apps # Mini-apps folder
- my_app # Sub folder for this mini-app
- server.r # RShiny server script
- tile.png # (optional) App icon image (must be named)
- ui.r # RShiny ui script
- my_app # Sub folder for this mini-app
- iris.csv # (optional) CSV file containing data to load into the workspace database
- scripts # (optional) Folder containing files to load into the workspace Scripts folder
- documents # (optional) Folder containing files to load into the workspace Documents folder
- datafiles # (optional) Folder containing files to load into the workspace Datafiles folder
The created .zip archive must be placed into Data folder using SFTP. Upon upload, you will be notified as to whether the archive was uploaded successfully. Now you should be able to locate it in the Mini-apps tab in your workspace.