Open chrisadolph opened 12 years ago
I think I could assist in developing some of these checks -- because I haven't used tile very much, a table such as the following would be quite helpful:
input required class1 class2 classn comments
x 1 list array matrix must be same length as y
color 0 list
plot 1 list must be distinct from other traces
Would it be possible to get my hands on something like that? Thanks.
That's the sort of thing that would be nice to make!
Some notes on the below:
myfunc <- function(x, y=20) { some stuff }
then x is a required input, but y is not (it has a default, 20).
Chris
On 1/29/12 11:45 PM, mikefree88 wrote:
I think I could assist in developing some of these checks -- because I haven't used tile very much, a table such as the following would be quite helpful:
input required class1 class2 classn comments x 1 list array matrix must be same length as y color 0 list
plot 1 list must be distinct from other tracesWould it be possible to get my hands on something like that? Thanks.
Reply to this email directly or view it on GitHub: https://github.com/chrisadolph/tile-simcf/issues/7#issuecomment-3715667
tile presently does little to check for acceptable inputs, and (mostly as a result) gives nonsensical error messages. tallestGrob error, anyone?
Checks need to happen at least in three ways: checks for each trace, to make sure inputs are feasible for that trace type, checks for tile parameters, to make sure they are possible for a tile plot, and, most difficult, checks for each input to a trace or tile itself conditional on the full range of other inputs to traces and tile.
We never want to accidentally exclude inputs that would work, so if you're unsure if something is an error (just unwise), use
warning()
instead oferror()
.