Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Can't `cbind` DelayedArray instances with other matrix-likes

已关闭
#100 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
r
领域
data

调研方向

首先重现 issue 中混合使用的 cbind(y, x) 和 cbind(y, y) 示例,然后检查针对 DelayedMatrix 的 bindCOLS 方法分派。完成标准是 cbind 能够接受 DelayedArray 与普通矩阵一起使用而不再出现报告的方法错误,同时保留现有的 DelayedArray 结果行为。

由索引模型根据 Issue 内容生成。

描述

I could have sworn this used to work.

library(DelayedArray)
x <- matrix(runif(100), 10, 10)
y <- DelayedArray(x)
cbind(y, x)
## Error in (function (classes, fdef, mtable)  : 
##   unable to find an inherited method for function ‘bindCOLS’ for signature ‘"DelayedMatrix"’

Two DelayedArrays are fine:

cbind(y, y)
## <10 x 20> matrix of class DelayedMatrix and type "double":
## etc.
Session information
> sessionInfo()
R version 4.2.0 Patched (2022-05-06 r82323)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.6 LTS

Matrix products: default
BLAS:   /home/luna/Software/R/R-4-2-branch/lib/libRblas.so
LAPACK: /home/luna/Software/R/R-4-2-branch/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats4    stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
[1] DelayedArray_0.22.0  IRanges_2.30.0       S4Vectors_0.34.0    
[4] MatrixGenerics_1.8.0 matrixStats_0.62.0   BiocGenerics_0.42.0 
[7] Matrix_1.4-1        

loaded via a namespace (and not attached):
[1] compiler_4.2.0  grid_4.2.0      lattice_0.20-45
主要语言
R
星标
29
派生
12
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Bioconductor/DelayedArray 的其他 Issue

查看 Bioconductor/DelayedArray 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。