In case of a long character vector x, it can be hard for the user to identify the faulty string(s) when as(x, "GRanges") fails. Would be nice if the error message was more informative e.g. by reporting the index and value of the 1st faulty element in x.
In case of a long character vector
x
, it can be hard for the user to identify the faulty string(s) whenas(x, "GRanges")
fails. Would be nice if the error message was more informative e.g. by reporting the index and value of the 1st faulty element inx
.