UBC-MDS / tidyplusR

A R package for extra data wrangling
Other
2 stars 5 forks source link

errors and warnings to address from running devtools::check() #30

Closed ttimbers closed 6 years ago

ttimbers commented 6 years ago
checking tests ... ERROR
  Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
  > library(testthat)
  > library(tidyplusR)
  > 
  > test_check("tidyplusR")
  ── 1. Error: (unknown) (@test_impute.R#5)  ───────────────────────────────────────────────────────────────────────────
  `path` does not exist
  1: testthat::test_file("impute.R") at testthat/test_impute.R:5
  2: stop("`path` does not exist", call. = FALSE)

  ══ testthat results  ═════════════════════════════════════════════════════════════════════════════════════════════════
  OK: 127 SKIPPED: 0 FAILED: 1
  1. Error: (unknown) (@test_impute.R#5) 

  Error: testthat unit tests failed
  Execution halted

checking Rd \usage sections ... WARNING
Undocumented arguments in documentation object 'compute'
  ‘data’ ‘method’

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 top-level files ... NOTE
Non-standard files/directories found at top level:
  ‘CONDUCT.md’ ‘CONTRIBUTING.md’

checking R code for possible problems ... NOTE
impute: no visible global function definition for ‘median’
impute: no visible global function definition for ‘density’
impute: no visible binding for global variable ‘x’
Undefined global functions or variables:
  density median x
Consider adding
  importFrom("stats", "density", "median")
to your NAMESPACE file.
xinbinhuang commented 6 years ago

Check passed 549975f56f286dd88e40f688e574204860d2960f