errors people can learn from #445

Closed
tbates opened this Issue Mar 15, 2012 · 3 comments

Comments

Projects
None yet
3 participants

tbates commented Mar 15, 2012

instead of this: which basically says "computer says no"

qplot(norm11, binwidth=3, geom="smoother")

Error: No geom called smoother

why not

Error: No geom called smoother: legal geoms are: abline, area, bar, bin2d, blank, boxplot, contour, crossbar, density, density2d, dotplot, errorbar, errorbarh, freqpoly, hex, histogram, hline, jitter, line, linerange, map, path, point, pointrange, polygon, quantile, raster, rect, ribbon, rug, segment, smooth, step, text, tile, violin, vline

or perhaps

Error: No geom called smoother: did you mean "smooth"?

Also

qplot(norm11, binwidth=3, geom="smooth")

Error: stat_smooth requires the following missing aesthetics: y

Why not:

Error: stat_smooth requires the following missing aesthetics: y. With no y given, perhaps you mean geom="density"?

Collaborator

kohske commented Mar 20, 2012

That would be nice but not easy to implement.
It would be useful if we have a topic of help such as ?geom, ?stat, and if there is an error, say,

Error: No geom called smoother: try ?geom

tbates commented Mar 20, 2012

That would be a good start: Then just create an easy way for all of us people who would like to make those new help pages helpful to do so…

Owner

hadley commented Feb 24, 2014

This sounds like a great feature, but unfortunately we don't currently have the development bandwidth to support it. If you'd like to submit a pull request that implements this feature, please follow the instructions in the development vignette.

hadley closed this Feb 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment