Warning in body(fun) : argument is not a function

2,423 views
Skip to first unread message

Marc Girondot

unread,
Jan 14, 2017, 5:27:30 AM1/14/17
to Shiny - Web Framework for R
Hi everyone,

Each time I run a shiny script, I get the message:
Warning in body(fun) : argument is not a function

It does not seem to give problem, but I don't like have such a message.

To reproduce it (I cannot make more simple ;) ):

if (interactive()) {
  ui <- fluidPage(
  )
  server <- function(input, output) {
  }
  shinyApp(ui=ui, server=server)
}

Thanks if someone could tell me how to prevent this message.

Marc

And I run it from Rstudio. Here are my session information:

> sessionInfo()
R Under development (unstable) (2017-01-02 r71879)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Sierra 10.12.2

locale:
[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

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

other attached packages:
[1] HelpersMG_1.8.4 coda_0.19-1     shiny_0.14.2   

loaded via a namespace (and not attached):
 [1] compiler_3.4.0  R6_2.2.0        htmltools_0.3.5 tools_3.4.0     Rcpp_0.12.8     grid_3.4.0     
 [7] jsonlite_1.2    digest_0.6.11   xtable_1.8-2    httpuv_1.3.3    mime_0.5        lattice_0.20-34

Bárbara Borges

unread,
Apr 24, 2017, 11:46:38 AM4/24/17
to Shiny - Web Framework for R
Sorry for the very late reply. This is a problem that occurs only with R 3.4. Now that CRAN has officially released 3.4 as the new stable version, we're addressing it: https://github.com/rstudio/shiny/issues/1676.
Reply all
Reply to author
Forward
0 new messages