swehip / slrplotfun

https://swehip.github.io/slrplotfun/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Checks #1

Closed eribul closed 3 years ago

eribul commented 3 years ago

> checking examples ... ERROR
  Running examples in ‘slrplotfun-Ex.R’ failed
  The error most likely occurred in:

  > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
  > ### Name: age_pyramid
  > ### Title: Age-pyramid plot function
  > ### Aliases: age_pyramid
  > 
  > ### ** Examples
  > 
  > # Creating data
  > df <- data.frame(age = rpois(100000, 65),
  +   gender = sample(c('Woman', 'Woman', 'Man'), 100000, replace = TRUE))
  > 
  > # Age pyramid
  > age_pyramid(df, age_var = 'age', gender_var = 'gender',
  +   man_level = 'Man', title = "This is an age pyramid")
  Error in df %>% dplyr::group_by_(gender_var, age_var) %>% dplyr::summarise_(Population = ~dplyr::n()) : 
    could not find function "%>%"
  Calls: age_pyramid
  Execution halted

> checking DESCRIPTION meta-information ... WARNING
  Non-standard license specification:
    `use_mit_license()`, `use_gpl3_license()` or friends to pick a
    license
  Standardizable: FALSE

> checking dependencies in R code ... WARNING
  '::' or ':::' imports not declared from:
    ‘dplyr’ ‘ggplot2’ ‘gridExtra’ ‘scales’

> checking Rd cross-references ... WARNING
  Missing link or links in documentation object 'age_pyramid.Rd':
    ‘geom_bar’

  Missing link or links in documentation object 'bar_plot.Rd':
    ‘percent_format’

  Missing link or links in documentation object 'km_plot.Rd':
    ‘percent_format’

  Missing link or links in documentation object 'line_plot.Rd':
    ‘percent_format’

  Missing link or links in documentation object 'trend_plot.Rd':
    ‘geom_smooth’ ‘percent_format’

  See section 'Cross-references' in the 'Writing R Extensions' manual.

> checking Rd \usage sections ... WARNING
  Documented arguments not in \usage in documentation object 'age_pyramid':
    ‘contour_line_size’

  Undocumented arguments in documentation object 'trend_plot'
    ‘fill_color’

  Functions with \usage entries need to have the appropriate \alias
  entries, and all their arguments documented.
  The \usage entries must correspond to syntactically valid R code.
  See chapter ‘Writing R documentation files’ in the ‘Writing R
  Extensions’ manual.

> checking for unstated dependencies in examples ... WARNING
  '::' or ':::' imports not declared from:
    ‘dplyr’ ‘ggplot2’ ‘survival’

> checking R code for possible problems ... NOTE
  age_pyramid: no visible global function definition for ‘%>%’
  age_pyramid: no visible global function definition for ‘element_blank’
  bar_plot: no visible global function definition for ‘%>%’
  bar_plot: no visible global function definition for ‘element_blank’
  km_plot: no visible global function definition for ‘%>%’
  km_plot: no visible global function definition for ‘element_blank’
  line_plot: no visible global function definition for ‘%>%’
  line_plot: no visible global function definition for ‘element_blank’
  trend_plot: no visible global function definition for ‘element_blank’
  Undefined global functions or variables:
    %>% element_blank

1 error x | 5 warnings x | 1 note x
Error: R CMD check found ERRORs
Execution halted

Exited with status 1.
eribul commented 3 years ago

Errors

Warnings

Notes