Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/71.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 - Fatal编程技术网

R 错误:找不到函数";选择“输入”;

R 错误:找不到函数";选择“输入”;,r,shiny,R,Shiny,我正在我的闪亮应用程序中使用selectizeInout,并收到以下错误消息: 错误:找不到函数“selectizeInput” 我在我的服务器中使用了以下代码。R代码,但我收到了上面的错误消息 output$Choose_Molecule <- renderUI({ selectizeInput( 'molecule', 'Select Molecule:', choices = ArgNames(), options = list( placeholder = 'Ple

我正在我的闪亮应用程序中使用selectizeInout,并收到以下错误消息:

错误:找不到函数“selectizeInput”

我在我的服务器中使用了以下代码。R代码,但我收到了上面的错误消息

output$Choose_Molecule <- renderUI({
selectizeInput(
  'molecule', 'Select Molecule:', choices = ArgNames(),
  options = list(
    placeholder = 'Please select an option below',
    onInitialize = I('function() { this.setValue(""); }')
  )
)
})
output$Choose\u分子库(“闪亮”)
>pre(粘贴(capture.output(sessionInfo()),collapse='\n'))
R版本3.0.3(2014-03-06)
平台:x86_64-unknown-linux-gnu(64位)
区域设置:
[1] LC_CTYPE=en_US LC_NUMERIC=C LC_TIME=en_US
[4] 信用证核对=美国信用证货币=美国信用证信息=美国信用证
[7] LC\U纸张=en\u US LC\u名称=C LC\u地址=C
[10] LC_电话=C LC_测量=en_US LC_识别=C
附加基本包:
[1] 统计图形GRUTILS数据集方法库
其他随附包裹:
[1] 光泽_0.9.1
通过命名空间加载(未附加):
[1] bitops_1.0-6 caTools_1.17 digest_0.6.4 httpuv_1.3.0 Rcpp_0.11.1
[6] RJSONIO_1.0-3 xtable_1.7-3
>pre(find.package('shinny'))
/home/vxy342/R/x86_64-unknown-linux-gnu-library/3.0/s
>pre(粘贴(读取行(system.file('DESCRIPTION',package='shinny')),折叠='\n'))
包装:闪亮
类型:包装
标题:R的Web应用程序框架
版本:0.9.1
日期:2014-03-19
作者:RStudio公司。
维修人员:张文斯顿winston@rstudio.com
描述:Shining使构建交互式web变得非常容易
具有R.输入和之间自动“反应”绑定的应用
输出和广泛的预构建小部件使构建
美观、响应速度快、功能强大的应用程序,只需花费很少的精力。
许可证:GPL-3
取决于:R(=2.14.1),方法
导入:统计信息、工具、UTIL、httpuv(=1.2.0)、caTools、RJSONIO、,
文摘
建议:数据集,降价,开罗(=1.5-5),测试
网址:http://www.rstudio.com/shiny/
错误报告:https://github.com/rstudio/shiny/issues
整理:'引导布局.R''引导.R''缓存.R''映射.R'
'fileupload.R''graph.R''hooks.R''imageutils.R''jqueryui.R'
'priorityqueue.R''react.R''reactives.R''运行url.R'
'sessioncontext.R''utils.R''shinny.R''shinyui.R'
'shinywrappers.R''showcase.R''slider.R''tags.R''tar.R'
'timer.R''更新输入.R'
打包时间:2014-03-19 18:50:47 UTC;ubuntu
需求编译:没有
储存库:CRAN
日期/发布日期:2014-03-19 20:56:50
建造:R3.0.1;2014-04-25 03:09:38 UTC;unix
>

这与java有什么关系?我读过一些关于Shining selectizeInput和it使用jave的文章。我指的是“”。但我认为这不是JAVA的问题。我提到这个问题是因为java与这个函数有关。我不能复制这个问题。我可以从
renderUI
调用中的“server.R”调用
selectizeInput
很好。也许您可以提供一个更具体的例子来重现错误。您的server.R文件中确实有
library(shinny)
,对吗?该页面引用的是“javascript”,而不是“java”。这是两种非常不同的语言。是的,我在这两种语言中都使用了library(shinny)。server.R和ui.R。
    > library('shiny')
> pre(paste(capture.output(sessionInfo()), collapse='\n'))
<pre>R version 3.0.3 (2014-03-06)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US       LC_NUMERIC=C         LC_TIME=en_US
 [4] LC_COLLATE=en_US     LC_MONETARY=en_US    LC_MESSAGES=en_US
 [7] LC_PAPER=en_US       LC_NAME=C            LC_ADDRESS=C
[10] LC_TELEPHONE=C       LC_MEASUREMENT=en_US LC_IDENTIFICATION=C

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

other attached packages:
[1] shiny_0.9.1

loaded via a namespace (and not attached):
[1] bitops_1.0-6  caTools_1.17  digest_0.6.4  httpuv_1.3.0  Rcpp_0.11.1
[6] RJSONIO_1.0-3 xtable_1.7-3 </pre>

> pre(find.package('shiny'))
<pre>/home/vxy342/R/x86_64-unknown-linux-gnu-library/3.0/shiny</pre>

> pre(paste(readLines(system.file('DESCRIPTION', package='shiny')), collapse='\n'))
<pre>Package: shiny
Type: Package
Title: Web Application Framework for R
Version: 0.9.1
Date: 2014-03-19
Author: RStudio, Inc.
Maintainer: Winston Chang &lt;winston@rstudio.com&gt;
Description: Shiny makes it incredibly easy to build interactive web
    applications with R. Automatic "reactive" binding between inputs and
    outputs and extensive pre-built widgets make it possible to build
    beautiful, responsive, and powerful applications with minimal effort.
License: GPL-3
Depends: R (&gt;= 2.14.1), methods
Imports: stats, tools, utils, httpuv (&gt;= 1.2.0), caTools, RJSONIO,
        xtable, digest
Suggests: datasets, markdown, Cairo (&gt;= 1.5-5), testthat
URL: http://www.rstudio.com/shiny/
BugReports: https://github.com/rstudio/shiny/issues
Collate: 'bootstrap-layout.R' 'bootstrap.R' 'cache.R' 'map.R'
        'fileupload.R' 'graph.R' 'hooks.R' 'imageutils.R' 'jqueryui.R'
        'priorityqueue.R' 'react.R' 'reactives.R' 'run-url.R'
        'sessioncontext.R' 'utils.R' 'shiny.R' 'shinyui.R'
        'shinywrappers.R' 'showcase.R' 'slider.R' 'tags.R' 'tar.R'
        'timer.R' 'update-input.R'
Packaged: 2014-03-19 18:50:47 UTC; ubuntu
NeedsCompilation: no
Repository: CRAN
Date/Publication: 2014-03-19 20:56:50
Built: R 3.0.1; ; 2014-04-25 03:09:38 UTC; unix</pre>
>