Quickstart
Deploy your first app in minutes using our public trial instance at try.ricochet.rs. Note that the trial instance is wiped weekly. Do not use it for production purposes.
-
Create an account at try.ricochet.rs
Or, you can login to your private instance.
-
Install the ricochet CLI
The ricochet CLI is used to deploy items to your ricochet server.
Terminal window curl -fsSL https://raw.githubusercontent.com/ricochet-rs/cli/main/install.sh | shTerminal window curl.exe -fsSL https://raw.githubusercontent.com/ricochet-rs/cli/main/install.ps1 -o install.ps1; .\install.ps1; Remove-Item install.ps1 -
Login to the ricochet instance
The
-Sflag is used to specify the server url you are logging into.Terminal window ricochet login -S https://try.ricochet.rs -
Deploy a Shiny app
First, clone an example Shiny app and navigate to it:
Terminal window git clone https://github.com/rstudio/shiny-examples.git /tmp/shiny-examplescd /tmp/shiny-examples/050-kmeans-example/Terminal window git clone https://github.com/rstudio/shiny-examples.gitcd shiny-examples/050-kmeans-example/Now deploy the app:
Terminal window ricochet deployYou’ll be prompted to create a
_ricochet.tomlfile. This file is required for deploying to ricochet and tracks your item’s configuration.Enter
yes. -
Select the language
Choose R from the language options (R, Julia, or Python).
? Choose a language › R -
Select the content type
Choose Shiny from the content type options. You can type “sh” to filter the list.
? Choose content type › Shiny -
Specify the entrypoint
The entrypoint is the file or folder that starts your app. For this example, select app.R.
? Select Shiny app entrypoint › app.R -
Give the item a name
Enter a display name for your app. This name appears in the ricochet UI.
? Content item name › My First Shiny App -
Set the item’s visibility
Choose who can access your app:
- Private: Only you and specified users
- Internal: Only logged-in users
- External: Public-facing, no authentication
For this quickstart, select External.
? Item visibility › External -
Deployment started!
Terminal window 📦 Deploying new Shiny content item✓ Deployment successful!Links:Deployment: https://try.ricochet.rs/deployments/01KE2F8DC4FGNZKGNR6NTW0BK6App Overview: https://try.ricochet.rs/apps/01KE2F8DC0NPEMA6TSD4EA1MY4/overviewOpen the
Deploymentlink above to watch your package environment restore! Once the deployment is complete, the app can be viewed.