title: Building R package "no visible global function definition for" shiny functions
body: <p>Im trying to check my own package with </p>
  
  <pre><code>Rcmd.exe check dbt.ORA_1.0.tar.gz.
  </code></pre>
  
  <p>despite of adding "Depends: shiny in the Description file, </p>
  
  <p>I get alot of warnings like this:</p>
  
  <p>...</p>
  
  <ul>
  <li>dbtORA: no visible global function definition for 'runApp' </li>
  <li>dbtORA: no visible global function definition for 'fluidPage' </li>
  <li>dbtORA: no visibleglobal function definition for 'titlePanel'</li>
  <li>dbtORA: no visible global function definition for 'sidebarLayout' </li>
  <li>dbtORA: no visible global function definition for 'sidebarPanel' </li>
  <li>dbtORA: no visible global function definition for 'selectInput' </li>
  <li>dbtORA: no visible global function definition for 'checkboxInput' </li>
  <li>dbtORA: no visible global function definition for 'conditionalPanel' </li>
  <li>dbtORA: no visible global function definition for 'numericInput' </li>
  <li>dbtORA: no visible global function definition for 'actionButton' </li>
  <li>dbtORA: no visible global function definition for 'mainPanel' </li>
  <li>dbtORA: no visible global function definition for 'textOutput' </li>
  <li>dbtORA: no visible global function definition for 'uiOutput'</li>
  </ul>
  
  <p>...</p>
  
  <p>the function dbtORA is very long, the source code is like this:</p>
  
  <pre><code>dbtORA &lt;-function(){
  ...
  outputApp=runApp(list(
    ui = fluidPage(
  ...
  ),
   server = function(input, output, session){
  ...
    }  
  ))
  ...
  return(outputApp=NamedORAResults)}
  </code></pre>
  
  <p>I have in this context also a second question:</p>
  
  <p>How do I declare functions, which are only locally defined, e.g. in</p>
  
  <pre><code>dbtORA &lt;-function(){
  ...
  matlabmin=function(...){...}
  ...}
  </code></pre>
  
  <p>gives the warning:</p>
  
  <ul>
  <li>dbtORA: no visible global function definition for 'matlabmin'</li>
  </ul>