无法在32位RStudio中运行Shiny应用程序runExample(“ 01_hello”)

时间:2019-08-21 12:27:26

标签: r shiny rstudio

问题:

  • 我可以在家用PC(Windows 7 Pro 64位)上使用32位RStudio 1.1.463运行Shiny应用runExample("01_hello")

  • 我无法在工作PC(Windows 7 Pro 32位)上使用32位RStudio 1.1.463运行此Shiny应用程序。

  • 如果我仅在工作PC上使用R终端版本3.6.1,而不是RStudio,则它可以工作。

  • 在RStudio的工作PC上,我收到一条消息,提示listening 127.0.0.1每次尝试更改端口号,然后RStudio关闭并且Shiny无法打开。

如何让Shiny在RStudio中工作?

我尝试过的事情:

  • 比较我的工作和家用PC之间的RStudio设置。
  • 安装丢失的软件包(yaml是通过命名空间加载的唯一丢失的软件包)。
  • 设置Shiny的IP地址和端口。

但是到目前为止我没有尝试过。

预期结果:

当我在RStudio中键入以下两行时

library(shiny)
runExample("01_hello")

我希望RStudio保持打开状态,并希望在新窗口中显示交互式Shiny runExample("01_hello")应用程序。但是RStudio关闭并且没有出现Shiny窗口。

会话信息:

> library(shiny)
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 (build 7601) Service Pack 1

Matrix products: default

Random number generation:
 RNG:     Mersenne-Twister 
 Normal:  Inversion 
 Sample:  Rounding 

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_1.3.2

loaded via a namespace (and not attached):
 [1] compiler_3.6.1  magrittr_1.5    R6_2.4.0        promises_1.0.1  later_0.8.0     htmltools_0.3.6
 [7] tools_3.6.1     Rcpp_1.0.2      digest_0.6.20   xtable_1.8-4    httpuv_1.5.1    mime_0.7   

0 个答案:

没有答案