Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R:通过另一台计算机运行代码时出错_R_Shiny_Character Encoding - Fatal编程技术网

R:通过另一台计算机运行代码时出错

R:通过另一台计算机运行代码时出错,r,shiny,character-encoding,R,Shiny,Character Encoding,我最近做了一个R闪亮的应用程序。由于不连贯,我需要在另一个程序中运行代码,但出现了许多语法问题,我不知道如何修复它 以下是我的代码的开头: ui <- navbarPage(title ="ESA Data Explorer", theme = shinytheme("united"), #### About us Shiny menu ##### navbarMenu("About us",

我最近做了一个R闪亮的应用程序。由于不连贯,我需要在另一个程序中运行代码,但出现了许多语法问题,我不知道如何修复它

以下是我的代码的开头:

ui <- navbarPage(title ="ESA Data Explorer", theme = shinytheme("united"),
             #### About us Shiny menu #####
             navbarMenu("About us",
                        tabPanel("The lab",
                                 h3(strong("Who are we?")),
                                 h4("We are a multidisciplinary research group of the Université Libre de Bruxelles,
                        which includes biologists, microbiologists,
                           ecological modelers and bioengineers. Our activities focus on the study
                           and modeling of the structure and functioning of aquatic systems 
                           (rivers, lakes, estuaries and coastal waters) and their response to natural
                           and anthropogenic changes. Our methodology involves and combines field observations,
                           process level studies under field and laboratory-controlled conditions and ecological
                           and biogeochemical modeling."),
                                 h3(strong("Our main research domains are:")),
                                 h4("- Coastal eutrophication"),
                                 h4("- Marine biogeochemical cycles and climatic gases"),
                                 h4("- Bacterial ecology of surface waters"),
                                 h4("- Microbiological quality of aquatic
                        ecosystems"),
                                 h4("- Microbiological aspect of drinking water production and distribution"),
                                 h5("More informations about the lab available",
                                    a("here", href = "http://esa.ulb.ac.be/")),
                                 br(),
                                 br(),
                                 br(),
                                 br(),
                                 br(),
                                 br()



                        )))

ui您可能有两个

br()
作为新笔记本电脑的一个选项。 (使用?br查看情况是否如此)

尝试指定您正在通过哪一个呼叫

shiny::br()

对于您的代码,您需要-

...
shiny::br(),
shiny::br(),
shiny::br()
...(for example)

当我忘记在dplyr中选择特定项时,这通常会对我有所帮助。

谢谢你的回答。实际上,htmltools没有安装在我的R中。我仍然在“shiny::br()ui”中有相同的消息error:error:unexpected符号。我不知道它是否能帮助您,但我的R版本是3.6.1,当它自动要求下载丢失的包时(因为新的lap),它说包是用3.6.2版本编译的。你认为可能是这个原因吗?我还想知道是否应该在新的R脚本中手动重写整个代码。为了安全起见,我只需要运行
update\u包。但是你也可以试着用hr()而不是br()作为一种方法来改变目前的状况。我的意思是,如果你只是需要它来工作,那可能是一个选择。否则我就不知道该怎么办了。对不起,我刚刚解决了这个问题,但真的很奇怪。对于h4(),label=,,我只需在一行中写入文本,。。。功能,而不是按回车键,使文本在4,5,。。。线。谢谢你的帮助!没问题,我没帮上什么忙,但我很高兴你能帮上忙。
...
shiny::br(),
shiny::br(),
shiny::br()
...(for example)