Back to Tutorials

R Shiny Application Hosting

25 minIntermediate

What you'll learn: Complete guide to hosting R Shiny interactive applications on MyFolioHub.

1

Prepare Your Shiny App

3 min

Ensure your Shiny app runs locally with `shiny::runApp()`. Create an app.R or separate ui.R and server.R files. Include a description.txt file explaining your app.

2

Create DESCRIPTION File

2 min

Create a DESCRIPTION file in your app directory specifying R version and dependencies. Include Title, Author, Version, and other metadata. This helps MyFolioHub understand your app requirements.

3

Push to GitHub

2 min

Push your Shiny app to a public GitHub repository. Include .gitignore to exclude large files and cache. Ensure all code is production-ready and well-commented.

4

Connect to MyFolioHub

2 min

In MyFolioHub, select "Add Application" → "R Shiny App". Authorize GitHub access and select your repository.

5

Configure R Environment

3 min

Select R version. MyFolioHub will automatically install packages from DESCRIPTION file. Configure memory and compute resources based on app complexity.

6

Deploy and Test

3 min

Click Deploy and monitor the build process. Your Shiny app will be live within 10-15 minutes. Test interactivity and performance thoroughly.

💡 Pro Tips

  • Package dependencies: List only necessary packages. Use library(package) in your code to ensure MyFolioHub detects dependencies.
  • Performance: Optimize reactive expressions to reduce computation time. Cache expensive operations.
  • Debugging: Check deployment logs if your app fails. MyFolioHub provides detailed error messages to help troubleshoot.
R Shiny Application Hosting | MyFolioHub Tutorials