deployApp: Deploy an Application on LocalShiny web

View source: R/deploy.R

deployAppR Documentation

Deploy an Application on LocalShiny web

Description

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.

Usage

deployApp(
    username,
    command = "",
    project = getwd(),
    version = NULL,
    name = NULL,
    description = NULL,
    os   = NULL) 

Arguments

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 project.

description

A brief description of the application.

os

Operation system that the application can be used. Defaults to the current system in your machine.

See Also

deleteAppApp(), installAppApp()

Examples

# 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")


localshiny/localshiny documentation built on May 14, 2023, 6:31 p.m.