Add generic function version()
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 58/100
Direção de pesquisa
Start by reading how BiocGenerics defines and exports existing S4 generic functions, then check the package's tests and documentation conventions. Add a version(object) generic following those conventions; done means it is exported and its generic signature is covered consistently with other generics. The issue does not name specific files or tests, so locate those entry points in the repository first.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Requested by the spatialdataR folks.
After quickly going around the Bioconductor ecosystem, I found that several packages define the version() function, either as a regular function, or as an S4 generic function with methods:
BiocManager:
- regular function with no argument
DaparToolshed:
- generic with 1 method
- generic's arguments:
version(object, ...) - note that the method does not use the ellipsis
GenomicSuperSignature:
- generic with 1 method
- generic's arguments:
version(x)
NanoStringNCTools:
- generic with 1 method
- generic's arguments:
version(object, ...) - note that the method does not use the ellipsis
RedeR:
- generic with 1 method
- generic's arguments:
version(obj)
Rigraphlib:
- regular function with 1 argument
- arguments:
version(expected = FALSE)
msa:
- generic with 1 method
- generic's arguments:
version(object)
I propose to use version(object) for the version() generic that we add to BiocGenerics. Better not to have the ellipsis in the argument list if it's not used. Problem with having the ellipsis in the generic and then define methods that ignore the ellipsis is that extra arguments mistakenly passed thru these methods are silently ignored instead of triggering an error.
So we can always add the ellipsis later when it's actually needed. Note that it's easy to do and doesn't break the existing methods.
Finally, as @Artur-man pointed out, conflicts with BiocManager::version() will be avoided by using the BiocManager:: prefix. Same thing with Rigraphlib::version().
- Linguagem predominante
- R
- Estrelas
- 13
- Forks
- 8
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Bioconductor/BiocGenerics
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
Bioconductor/BiocGenerics#24 · 23 comentários · 1 reação ·
Todas as issues de Bioconductor/BiocGenerics
Issues semelhantes
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 66/100
nmfs-ost/stockplotr#518 ·
Mantenedores costumam responder em até 2 dias
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
nf-core/ampliseq#1146 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
HelenaLC/spatialdataR#295 ·
-
R cheat sheetAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
KUBDatalab/R-PUFF-SEMS#170 ·
-
size-time-budget
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 69/100
kapelner/EDI#66 · 1 comentário ·
Mantenedores costumam responder em até 1 dia