我在闪亮的应用程序中使用selectizeInout,我收到以下错误消息:
"错误:无法找到功能" selectizeInput""
我在我的server.R代码中使用以下代码,但我收到上面的错误消息。
output$Choose_Molecule <- renderUI({
selectizeInput(
'molecule', 'Select Molecule:', choices = ArgNames(),
options = list(
placeholder = 'Please select an option below',
onInitialize = I('function() { this.setValue(""); }')
)
)
})
我经历了https://github.com/rstudio/shiny/issues/412。我提供以下信息:
> 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 <winston@rstudio.com>
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 (>= 2.14.1), methods
Imports: stats, tools, utils, httpuv (>= 1.2.0), caTools, RJSONIO,
xtable, digest
Suggests: datasets, markdown, Cairo (>= 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>
>