you must hold a shinyapps.io account and have a token.
use this command from the package rsconnect to set up your token
setAccountInfo(name='your_shinyapps.io_user_name', token='your_token', secret='your_secret')
Following this the app can be deployed on your account
1 | publishApp(object, appName = NULL, writeDir = NULL, addFiles = NULL, ...)
|
object |
a compMS2 class object |
appName |
character name for your new app (e.g. 'compMS2Example'). |
writeDir |
character full path to a directory to save the compMS2 results and the current shiny app zip file to. This zip file can then be shared with others.if this argument is not supplied the results will be deployed on shinyapps.io. |
addFiles |
character vector of full paths to files which will be included in the zip file or bundle to shinyapps.io. For example code used to generate compMS2 results. The default is to include at minimum a text file containing the output of sessionInfo this is intended to maintain reproducibility of published results. |
... |
further arguments to the deployApp function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.