[Feature Request]: Improve reporting of qenv code
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Read the issue's example using globals::globalsOf and the warning produced for subset(iris, Species == species). Start by identifying how qenv code is evaluated and how its environment is isolated; the issue names no files or tests, so locate those entry points in the repository. Done means missing variables or external dependencies are reported more accurately without gaining access to objects from unloaded packages through .GlobalEnv.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Feature description
During #303 for #272 it was suggested to use globals package for finding issues with the code supplied.
Using code like this:
g2 <- globals::globalsOf(parsed_code, method = "conservative", mustExist = FALSE, envir = [email protected])
missing <- globals::cleanup(g2, drop = c("nativesymbolinfo", "base-packages"))
if (length(missing)) {
warn <- warningCondition(
message = sprintf(
"When evaluating qenv code:\n%s\nMissing objects %s",
parsed_code,
toString(sQuote(names(missing), "'"))
),
class = c("qenv.warn", "simpleWarning")
)
warning(warn, call. = FALSE)
}
Lead to warnings like this on tests:
When evaluating qenv code:
i <- subset(iris, Species == species)
Missing objects 'Species', 'species'
There wasn't an optimal method that would find those variables that cannot be created. It would be great if there were a better way to find the missing variables or external dependencies than to evaluate the code with the .GlobalEnv as this provides access to objects from packages that are not loaded inside the qenv.
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contribution Guidelines
- I agree to follow this project's Contribution Guidelines.
Security Policy
- I agree to follow this project's Security Policy.
- Lingua principale
- R
- Stelle
- 12
- Fork
- 12
- Merge medio
- 4g 22h
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pharmaverse/teal.code
-
[Feature Request]: High cyclomatic complexity leds to bad readabilityForse già presa @llrs-roche l’ha presa 87 giorni fa. Apertaenhancement
Difficoltà 3/5 3-5 giorni Idoneità per principianti 45/100
pharmaverse/teal.code#295 ·
-
core discussion
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
pharmaverse/teal.code#291 · 2 commenti · 1 reazione ·
-
bug core
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
pharmaverse/teal.code#275 ·
-
This is test issue to test copilot capabilitiesForse già presa @copilot-swe-agent l’ha presa 484 giorni fa. Apertabug
pharmaverse/teal.code#266 · 1 reazione · 1 assegnatario ·
-
core enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
pharmaverse/teal.code#204 ·
Tutte le issue di pharmaverse/teal.code
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
Bioconductor/BiocParallel#289 ·
-
automation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
waldronlab/BugSigDBcuration#2224 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
merliseclyde/BAS#118 ·