Skip to content

Commit

Permalink
"coverage" methods now accept 'shift' and 'weight' supplied as an Rle
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Apr 20, 2015
1 parent 6152639 commit 2aa8c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/coverage-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
arg, "\" columns")
arg <- x_mcols[ , arg]
}
if (!is.numeric(arg))
if (!(is.numeric(arg) || is(arg, "Rle") && is.numeric(runValue(arg))))
stop("'", arg.label, "' must be a numeric vector, a single string, ",
"or a list-like object")
split(.recycle(arg, length(x), arg.label, "x"), seqnames(x))
Expand Down

0 comments on commit 2aa8c7b

Please sign in to comment.