ropensci / coder

Classification of Cases into Deterministic Categories
https://docs.ropensci.org/coder/
22 stars 4 forks source link

Examples of every option #103

Closed eribul closed 3 years ago

eribul commented 4 years ago

I'd like to see examples that utilize every option available in each function, rather than only simple examples. I often find myself wanting to use a non-default option in a function and not finding any example that helps me understand how to specify the option. Having simple examples is essential, but also including a more complex example that utilizes more than just the basic function arguments will really help users with more complex problems or more advanced users. For example, the example given in the classcodes help file isn't very useful. The object you pass to as.classcodes() in the example is already a classcodes object. How would I use the argument hierarchy? I don't know because you haven't given an example.

eribul commented 4 years ago

All exports according to NAMESPACE

eribul commented 3 years ago

covr::package_coverage(<path-to-your-package>, type = "examples")

eribul commented 3 years ago

Review: I agree and have added examples which I think should cover all arguments etc.