Im trying to check my own package with
Rcmd.exe check dbt.ORA_1.0.tar.gz.
despite of adding "Depends: shiny in the Description file,
I get alot of warnings like this:
...
- dbtORA: no visible global function definition for 'runApp'
- dbtORA: no visible global function definition for 'fluidPage'
- dbtORA: no visibleglobal function definition for 'titlePanel'
- dbtORA: no visible global function definition for 'sidebarLayout'
- dbtORA: no visible global function definition for 'sidebarPanel'
- dbtORA: no visible global function definition for 'selectInput'
- dbtORA: no visible global function definition for 'checkboxInput'
- dbtORA: no visible global function definition for 'conditionalPanel'
- dbtORA: no visible global function definition for 'numericInput'
- dbtORA: no visible global function definition for 'actionButton'
- dbtORA: no visible global function definition for 'mainPanel'
- dbtORA: no visible global function definition for 'textOutput'
- dbtORA: no visible global function definition for 'uiOutput'
...
the function dbtORA is very long, the source code is like this:
dbtORA <-function(){
...
outputApp=runApp(list(
ui = fluidPage(
...
),
server = function(input, output, session){
...
}
))
...
return(outputApp=NamedORAResults)}
I have in this context also a second question:
How do I declare functions, which are only locally defined, e.g. in
dbtORA <-function(){
...
matlabmin=function(...){...}
...}
gives the warning:
- dbtORA: no visible global function definition for 'matlabmin'
dbtORA <- NULL
at the top of your script before the variable is called. The problem is you likely that have some sort of function that is probably reading a variable from a data.frame or list and using non standard evaluation – Tyler Rinkerdevtools
. – Tyler Rinker