DelayedArray subsetting via lapply doesn't work
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by running the provided R reproduction with DelayedArray 0.19.4 and compare ordinary matrix subsetting with lapply on a DelayedArray. Trace the subsetting entry point and the sys.call() handling mentioned in the report; done means the lapply call returns the requested 5-by-2 subset without the '...' context error.
Written by the indexing model from the issue text.
Description
On DelayedArray 0.19.4:
x <- list(matrix(runif(100), 10, 10))
lapply(x, "[", i=1:5, j=1:2, drop=FALSE)
## [[1]]
## [,1] [,2]
## [1,] 0.5664114 0.89343894
## [2,] 0.9693973 0.07918907
## [3,] 0.1310845 0.20746916
## [4,] 0.6174420 0.48100379
## [5,] 0.5324374 0.82014878
library(DelayedArray)
y <- list(DelayedArray(x[[1]]))
lapply(y, "[", i=1:5, j=1:2, drop=FALSE)
## Error in eval(subscript, envir = eframe, enclos = eframe) :
## '...' used in an incorrect context
Not 100% sure what's happening here, just that there's some voodoo stuff going on with sys.call().
- Dominant language
- R
- Stars
- 29
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Bioconductor/DelayedArray
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Bioconductor/DelayedArray#129 · 11 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Bioconductor/DelayedArray#127 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Bioconductor/DelayedArray#125 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Bioconductor/DelayedArray#123 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Bioconductor/DelayedArray#122 ·
All issues in Bioconductor/DelayedArray
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
easystats/performance#950 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
briandconnelly/airnow#9 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OHDSI/CohortConstructor#774 ·
-
pre-review R TeX Track: 5 (DSAIS)
Difficulty 1/5 Under an hour Newbie friendliness 60/100
openjournals/joss-reviews#11330 · 7 comments ·