showRaw()
not working when rows
argument is vector containing row names
#18
Labels
bug
Something isn't working
When I use
showRaw()
with arows
argument consisting of a vector containing row names, I get the following error:Running
traceback()
results in:It appears to stem from this line:
https://github.com/jromanowska/HaplinMethyl/blob/7fc4afdc0c45f38321896fb55323bf1d54dc9372/R/showRaw.R#L98C50-L98C54
There are no issues when
rows
is integers, or whencolumns
is integers or a vector with column names.Perhaps
rownames(show_matrix) <- data_summary$rownames[rows]
should be replaced by an if-else statement conditional on whetherall(is.character(rows))
isTRUE
orFALSE
. IfTRUE
, userownames(show_matrix) <- rows
, and ifFALSE
, then userownames(show_matrix) <- data_summary$rownames[rows]
.The text was updated successfully, but these errors were encountered: