deployApp | R Documentation |
Deploy an application, which can be an R package or R documents to a server. This function will extract all dependencies information based on 'renv::sapshot()' and write a 'renv.lock' file under the project directory.
deployApp(
username,
command = "",
project = getwd(),
version = NULL,
name = NULL,
description = NULL,
os = NULL)
username |
Name of account |
command |
R file that needs to be specified to run the application. |
project |
Directory containing application. Defaults to current working directory. |
version |
Application version |
name |
Name of application (names must be unique within an account).
Defaults to the base name of the specified |
description |
A brief description of the application. |
os |
Operation system that the application can be used. Defaults to the current system in your machine. |
deleteAppApp(), installAppApp()
# log in first
mytoken = "Mxxdsjlfwofejlfda"
login("python", token = mytoken)
# deploy the application in the current working dir to python's repository
deployApp("python")
# deploy an application in another directory
deployApp("python", project = "/localshiny/projects/app1")
# deploy an R file as an application
deployApp("python", project = "/localshiny/projects/app2.R")
# deploy an application using an alternative application name
deployApp("python", "/localshiny/projects/app2", appName = "newapp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.