gpt4 book ai didi

r - 在 Shinyapps.io 中展示已发布应用的显示模式

转载 作者:行者123 更新时间:2023-12-04 11:37:36 26 4
gpt4 key购买 nike

我只想了解 Shiny 应用程序中的展示模式,
当我们在本地为展示模式运行 Shiny 的应用程序时,我们可以使用这样的命令

setwd('D:/xxxx/')
runApp("aa",display.mode = "showcase")

我的问题是,如果我们想在我们想要在 Shinyapps.io 中发布的应用程序中显示我们的代码(展示模式)

谢谢,

最佳答案

您可以通过创建描述文件来提供有关 Shiny 展示将使用的应用程序的信息。该文件应以纯文本格式编写,并在 Debian Control File (DCF) 中包含 Title、Author 和 DisplayMode 字段。格式。您还可以包括其他可选字段,例如 AuthorUrl、License 和 Tags。 Shiny 内置 01_hello 示例的描述文件如下所示
您可以更改标题、作者姓名和链接。

Title: Hello Shiny!
Author: RStudio, Inc.
AuthorUrl: http://www.rstudio.com/
License: GPL-3
DisplayMode: Showcase
Tags: getting-started
Type: Shiny

Shiny 将使用 DisplayMode 字段来确定您的应用程序的默认显示模式。如果您将该字段设置为 Showcase,Shiny 将以展示模式打开您的应用程序。如果您将其设置为 Normal,Shiny 将在 Normal 模式下打开您的应用程序。您的用户可以使用 runApp 的 display.mode 参数覆盖此默认值。

Full Documentation

关于r - 在 Shinyapps.io 中展示已发布应用的显示模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26291523/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com