Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hintme: A package to allow users to get hints at different levels of detail #33

Open
maurolepore opened this issue Mar 8, 2019 · 1 comment

Comments

@maurolepore
Copy link

maurolepore commented Mar 8, 2019

Things that are easy to use give users feedback (The Design of Everyday Things). But how much feedback should something (e.g. a function) give before it gets annoying? The answer to this question strongly depends on how familiar the user is with the thing being used. Yet, in R, developers and users have no way to control how much or how little feedback they want to give and get.

This project aims to brainstorm and maybe build a prototype for a package that would make it easy for package developers to give users feedback at different levels of detail. Users may control how much detail they get, for example, via options().

Example

The first time you use a package, you may want to get as much feedback as possible (default?) so you can answer in your head all of these questions:

  • What can I do with this package?
  • Where should I start from?
  • Great, I want to do "A". Have I actually accomplished doing "A"?
  • Uhhh, not good! What went wrong?
  • Uhhh, not good! How may I fix this?
  • Yay, awesome result! What is the most common thing to do next?

After some practice, you may set, say, options(hintme = 0) to request feedback only when something goes wrong (i.e. warnings and messages only).

Implementation

R provides convenient ways to clasify conditions such as errors, warnings and messages. This idea is well developed in the rlang package by @lionel- et. al. Building on this foundation, we could give developers and users an easy way to clasify the feedback they want to respectively give and get.

Dreaming further, one class of "verbose" feedback could even take users to crowd-source hints e.g. in rstuido community, stack overflow, the package's issues, or a vignette about common problems.

@maurolepore
Copy link
Author

{hintme} could benefit, for example, the r-tips package proposed by @revodavid (#20). Tips could be classified by expertise level (say, 1-3) and users could control the class of tips they want to get (e.g. via something like options(hintme = 3)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant