lockedata / PackageReviewR

R Package :package: to review :mag: R :package:s
Other
18 stars 0 forks source link

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

Open stephlocke opened 7 years ago

stephlocke commented 7 years ago

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

maelle commented 7 years ago

Random suggestions

stephlocke commented 7 years ago

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
noamross commented 7 years ago

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

maelle commented 7 years ago

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

rorynolan commented 7 years ago

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

maelle commented 7 years ago

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

zkamvar commented 7 years ago

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.

stephlocke commented 7 years ago

Great idea @zkamvar !

stephlocke commented 7 years ago

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

cderv commented 7 years ago

Some ideas:

Hendrik147 commented 7 years ago

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