RInno在RStudio中使用Shiny的详细示例

时间:2018-05-10 06:39:21

标签: r shiny inno-setup

我需要制作多个Shiny应用程序,超过免费版shiny.io中的5个应用程序限额。所以我试图使用RInno。我知道这很荒谬,但beginner's tutorial for RInno似乎对我来说太稀疏了(他们称之为“最小例子”)。我根本无法弄清楚我的意图。在本教程中,使用预加载的“示例”应用程序进行演示。

# If you don't have development tools, install them
install.packages("devtools"); require(devtools)

# Use install_github to get RInno
devtools::install_github("ficonsulting/RInno",  build_vignettes = TRUE)

# Require Package
require(RInno)

# Use RInno to get Inno Setup
RInno::install_inno()

# Example app included with RInno package
example_app(wd = getwd())

# Build an installer
create_app(app_name = "Your appname", app_dir = "app")
compile_iss()

当我在RStudio中运行时,我的工作目录中会出现一个名为app的文件夹。我打开它找到以下(屏幕截图):

enter image description here

我现在该怎么办?我尝试打开“您的appname”并按照设置说明操作(点击下一个>下一个>下一个>>>完成)。这会在我的桌面上显示一个名为“您的appname”的快捷方式。我打开它但得到错误:

enter image description here

我做错了吗?这是一个错误吗?从第一个屏幕截图中打开html文件夹中的app文件夹会显示一个我认为是示例的html。这对我来说很适合自己的需要。但是,当我尝试用

之类的东西启动我自己的现有应用程序时
create_app(app_name = "existing app", app_dir = "path/to/existing/app")
compile_iss()

然后我甚至没有像这里的屏幕截图那样得到一个html文件夹! 我现有shiny应用的脚本位于RStudio,这是对的吗?或者它需要在Inno安装脚本中吗?

任何指针都会非常棒。干杯

0 个答案:

没有答案