闪亮的新秀问题

时间:2018-04-04 16:03:59

标签: r shiny

我是Shiny的新手,正在观看Abhinav Agrawal的教程(目前正在this video上)。

据我所知,我已经完全复制了视频中的代码。我的代码如下:

ui.R:

    library(shiny)
    shinyUI(fluidPage(
      titlePanel(title = "This is my first shiny app, hello shiny!"),
      sidebarLayout(
      sidebarPanel("this is side bar panel"),
      mainPanel("this is the main panel text, output is displayed here")
      )
      )
    )

server.R:

    library(shiny)

    shinyServer(
    function(input, output){

   }  

   )

然而,当视频中的代码生成标题,主面板和侧边栏面板的演示时,我的代码,当我通过在控制台中调用runApp()命令运行它时,会产生以下警告:< / p>

Listening on http://127.0.0.1:3844
Warning in charToRaw(enc2utf8(text)) :
  argument should be a character vector of length 1
all but the first element will be ignored

此外,制作的闪亮窗口与视频中的窗口不同,除了单词&#34;有光泽的&#34;之外,它是完全空的。出现在左上角的全小写字母中。

我的sessionInfo()如下:

    R version 3.4.0 (2017-04-21)
    Platform: x86_64-w64-mingw32/x64 (64-bit)
    Running under: Windows >= 8 x64 (build 9200)

    Matrix products: default

    locale:
    [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United 
    States.1252    LC_MONETARY=English_United States.1252
    [4] LC_NUMERIC=C    LC_TIME=English_United States.1252    

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

    other attached packages:
    [1] shiny_1.0.5

    loaded via a namespace (and not attached):
    [1] compiler_3.4.0  R6_2.2.2        htmltools_0.3.6 tools_3.4.0     
    Rcpp_0.12.16    jsonlite_1.5    digest_0.6.15   xtable_1.8-2   
    [9] httpuv_1.3.6.2  mime_0.5       

出了什么问题?

谢谢!

0 个答案:

没有答案
相关问题