Skip to content

Fix build warnings #32

@thiloshon

Description

@thiloshon

RCMD check if throwing few warnigns thats failing the CI checks. @rahulchauhan049 @saxenism can you please take a look?

rcmdcheck::rcmdcheck(args = c("--no-manual"), error_on = "warning", check_dir = "check")

√  checking for file 'C:\Users\Thiloshon\Documents\RProjects\dashboard.experiment/DESCRIPTION' ... 
-  preparing 'bddashboard': (770ms)
√  checking DESCRIPTION meta-information ... 
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  building 'bddashboard_0.1.1.tar.gz'
   
-- R CMD check ---------------------------------------------------------------------------------------------------
-  using log directory 'C:/Users/Thiloshon/Documents/RProjects/dashboard.experiment/check/bddashboard.Rcheck' (421ms)
-  using R version 4.1.1 (2021-08-10)
-  using platform: x86_64-w64-mingw32 (64-bit)
-  using session charset: ISO8859-1
-  using option '--no-manual' (1.8s)
√  checking for file 'bddashboard/DESCRIPTION'
-  this is package 'bddashboard' version '0.1.1'
-  package encoding: UTF-8
√  checking package namespace information
√  checking package dependencies (1.2s)
√  checking if this is a source package ... 
√  checking if there is a namespace
√  checking for .dll and .exe files
√  checking for hidden files and directories ... 
√  checking for portable file names ... 
W  checking whether package 'bddashboard' can be installed (23.9s)
   Found the following significant warnings:
     Warning: replacing previous import 'formattable::style' by 'plotly::style' when loading 'bddashboard'
     Warning: replacing previous import 'DT::dataTableOutput' by 'shiny::dataTableOutput' when loading 'bddashboard'
     Warning: replacing previous import 'DT::renderDataTable' by 'shiny::renderDataTable' when loading 'bddashboard'
     Warning: replacing previous import 'flexdashboard::valueBox' by 'shinydashboard::valueBox' when loading 'bddashboard'
     Warning: replacing previous import 'flexdashboard::renderValueBox' by 'shinydashboard::renderValueBox' when loading 'bddashboard'
     Warning: replacing previous import 'flexdashboard::valueBoxOutput' by 'shinydashboard::valueBoxOutput' when loading 'bddashboard'
     Warning: replacing previous import 'shiny::runExample' by 'shinyjs::runExample' when loading 'bddashboard'
     Warning: replacing previous import 'shinyWidgets::alert' by 'shinyjs::alert' when loading 'bddashboard'
     Warning: replacing previous import 'shinyjs::show' by 'sp::show' when loading 'bddashboard'
   See 'C:/Users/Thiloshon/Documents/RProjects/dashboard.experiment/check/bddashboard.Rcheck/00install.out' for details.
√  checking package directory ...
N  checking DESCRIPTION meta-information (465ms)
   Malformed Description field: should contain one or more complete sentences.
   Non-standard license specification:
     What license is it under?
   Standardizable: FALSE
N  checking top-level files
   File
     LICENSE
   is not mentioned in the DESCRIPTION file.
√  checking for left-over files ... 
√  checking index information
√  checking package subdirectories ... 
√  checking R files for non-ASCII characters ... 
√  checking R files for syntax errors ... 
√  checking whether the package can be loaded (3.2s)
√  checking whether the package can be loaded with stated dependencies (3.8s)
√  checking whether the package can be unloaded cleanly (3.6s)
√  checking whether the namespace can be loaded with stated dependencies (3s)
√  checking whether the namespace can be unloaded cleanly (3.5s)
W  checking dependencies in R code (3.2s)
   '::' or ':::' import not declared from: 'stringr'
   Namespace in Imports field not imported from: 'pkgload'
     All declared Imports should be used.
√  checking S3 generic/method consistency (5s)
√  checking replacement functions (3.4s)
√  checking foreign function calls (3.3s)
N  checking R code for possible problems (9.9s)
   mod_DT_server: no visible global function definition for 'setNames'
   mod_data_summary_server: no visible global function definition for
     'na.omit'
   mod_leaflet_server: no visible global function definition for 'na.omit'
   mod_missing_data_server: no visible binding for global variable
     'missing_temporal'
   mod_missing_data_server: no visible binding for global variable
     'missing_taxonomic'
   mod_plot_field_selector_server: no visible global function definition
     for 'setNames'
   mod_plotly_bars_server: no visible global function definition for
     'colorRampPalette'
   mod_plotly_bubble_server: no visible binding for global variable 'Freq'
   mod_plotly_bubble_server: no visible global function definition for
     'colorRampPalette'
   mod_plotly_line_server: no visible global function definition for
     'na.omit'
   mod_plotly_line_server: no visible binding for global variable 'Freq'
   Undefined global functions or variables:
     Freq colorRampPalette missing_taxonomic missing_temporal na.omit
     setNames
   Consider adding
     importFrom("grDevices", "colorRampPalette")
     importFrom("stats", "na.omit", "setNames")
   to your NAMESPACE file.
√  checking Rd files (345ms)
√  checking Rd metadata ... 
√  checking Rd cross-references (347ms)
W  checking for missing documentation entries (3.1s)
   Undocumented code objects:
     'dictionary'
   Undocumented data sets:
     'dictionary'
   All user-level objects in a package should have documentation entries.
   See chapter 'Writing R documentation files' in the 'Writing R
   Extensions' manual.
√  checking for code/documentation mismatches (8.9s)
√  checking Rd \usage sections (4.3s)
√  checking Rd contents ... 
√  checking for unstated dependencies in examples ... 
√  checking contents of 'data' directory ... 
√  checking data for non-ASCII characters (339ms)
√  checking LazyData
W  checking data for ASCII and uncompressed saves (450ms)
     Warning: package needs dependence on R (>= 2.10)
-  checking examples ... NONE
   
   See
     'C:/Users/Thiloshon/Documents/RProjects/dashboard.experiment/check/bddashboard.Rcheck/00check.log'
   for details.
   
   
-- R CMD check results -------------------------------------------------------------------- bddashboard 0.1.1 ----
Duration: 1m 31.2s

> checking whether package 'bddashboard' can be installed ... WARNING
  See below...

> checking dependencies in R code ... WARNING
  '::' or ':::' import not declared from: 'stringr'
  Namespace in Imports field not imported from: 'pkgload'
    All declared Imports should be used.

> checking for missing documentation entries ... WARNING
  Undocumented code objects:
    'dictionary'
  Undocumented data sets:
    'dictionary'
  All user-level objects in a package should have documentation entries.
  See chapter 'Writing R documentation files' in the 'Writing R
  Extensions' manual.

> checking data for ASCII and uncompressed saves ... WARNING
    Warning: package needs dependence on R (>= 2.10)

> checking DESCRIPTION meta-information ... NOTE
  Malformed Description field: should contain one or more complete sentences.
  Non-standard license specification:
    What license is it under?
  Standardizable: FALSE

> checking top-level files ... NOTE
  File
    LICENSE
  is not mentioned in the DESCRIPTION file.

> checking R code for possible problems ... NOTE
  mod_DT_server: no visible global function definition for 'setNames'
  mod_data_summary_server: no visible global function definition for
    'na.omit'
  mod_leaflet_server: no visible global function definition for 'na.omit'
  mod_missing_data_server: no visible binding for global variable
    'missing_temporal'
  mod_missing_data_server: no visible binding for global variable
    'missing_taxonomic'
  mod_plot_field_selector_server: no visible global function definition
    for 'setNames'
  mod_plotly_bars_server: no visible global function definition for
    'colorRampPalette'
  mod_plotly_bubble_server: no visible binding for global variable 'Freq'
  mod_plotly_bubble_server: no visible global function definition for
    'colorRampPalette'
  mod_plotly_line_server: no visible global function definition for
    'na.omit'
  mod_plotly_line_server: no visible binding for global variable 'Freq'
  Undefined global functions or variables:
    Freq colorRampPalette missing_taxonomic missing_temporal na.omit
    setNames
  Consider adding
    importFrom("grDevices", "colorRampPalette")
    importFrom("stats", "na.omit", "setNames")
  to your NAMESPACE file.

0 errors √ | 4 warnings x | 3 notes x
Error: R CMD check found WARNINGs```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions