PackageReviewR icon indicating copy to clipboard operation
PackageReviewR copied to clipboard

What things do you think should be covered in a package review?

Open stephlocke opened this issue 7 years ago • 11 comments

We can do a lot of different things in a package review. What do you think should be included?

stephlocke avatar Apr 11 '17 16:04 stephlocke

Random suggestions

  • typos via devtools::spell_check ()

  • URLs to repo and issues tracker in DESCRIPTION

maelle avatar Apr 11 '17 17:04 maelle

Path construction with paste

This needs automation to be adopted:

  1. CI using lintr/gp: "Probable path construction using paste0 at line..." https://twitter.com/noamross/status/852185834648461312

stephlocke avatar Apr 13 '17 15:04 stephlocke

  • Somewhat meta, but checking for continuous integration
  • consistency in function naming, functions only have dots if they are S3 methods
  • check README.Rmd as a vignette, to ensure it builds
  • "coverage" in examples and vignettes

(maybe opinionated=TRUE does things like require snake_case functions, prefers xml2 to XML, code of conduct etc.)

noamross avatar Apr 20 '17 12:04 noamross

Reg. the second point in @noamross's list maybe use lintr

maelle avatar Apr 20 '17 12:04 maelle

Unit testing, i.e. the existence of a non-empty tests/ directory in the source.

rorynolan avatar Apr 24 '17 07:04 rorynolan

Reg. unit testing maybe it'd also be useful to count the skip_on_something commands in the tests.

maelle avatar Apr 24 '17 07:04 maelle

User-readable errors and warnings (bonus: with suggestions). Relying on some other function to tell the user they have a character string instead of a data frame is asking for trouble.

zkamvar avatar Apr 24 '17 14:04 zkamvar

Great idea @zkamvar !

stephlocke avatar Apr 24 '17 14:04 stephlocke

Documentation Comments DOI Tests Use cases https://twitter.com/tpoi/status/856517513533935618

stephlocke avatar Apr 24 '17 15:04 stephlocke

Some ideas:

  • NEWS file to document new features in release
  • At least one vignette about usage or use cases.
  • unit test
  • not all functions in one R script.
  • assertive checks in function to help user with error

cderv avatar Apr 24 '17 18:04 cderv

There need to be some clear statements on what the package does better than other packages and possibly clearness on known package limitations.

Hendrik147 avatar Jun 06 '17 18:06 Hendrik147