futureverse / futureverse/globals

Detect packages needed by S4 classes

Open
#74 3 comments 0 reactions 0 assignees View on GitHub
S4
Dominant language
R
Stars
29
Forks
3
PR merge metrics
No merged PRs in 30d

Description

```r
> library(bigmemory)
> X <- as.big.matrix(matrix(1:10, nrow = 2L))
> class(X)
[1] "big.matrix"
attr(,"package")
[1] "bigmemory"
```
In other words, if `X` is a global, we should append:
```r
packages <- c(packages, attr(class(X), "package"))
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the R code that detects globals and assembles the packages vector. Reproduce the bigmemory S4-class example, then verify that a global such as X contributes attr(class(X), "package") to the package list.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.