grimbough / biomaRt

R package providing query functionality to BioMart instances like Ensembl
https://bioconductor.org/packages/biomaRt/
34 stars 13 forks source link

new_config may not exist at end of zzz.R #40

Closed vjcitn closed 3 years ago

vjcitn commented 3 years ago

Error: package or namespace load failed for ‘VariantAnnotation’: .onLoad failed in loadNamespace() for 'biomaRt', details: call: httr::set_config(new_config, override = FALSE) error: object 'new_config' not found Error : package ‘VariantAnnotation’ could not be loaded Error: loading failed Execution halted

not easy to reproduce, but popped up in https://github.com/vjcitn/gwaslake/runs/1753964971?check_suite_focus=true

i think early initialization of new_config to the most likely successful value will beat this

grimbough commented 3 years ago

Hi Vince,

Thanks for the report. I'm already working through this in #39. I think it is somewhat GitHub specific as I haven't seen it anywhere else. I'm particularly baffled as to why the biomaRt's own R CMD check workflow action seems to work fine.

I've got a branch that probably still fails, but should print more diagnostics of the problem.

BiocManager::install('grimbough/biomaRt', ref = '3_12_testing')

It'd be awesome if you could install that version explicitly in a workflow and then point me to the output.

vjcitn commented 3 years ago

I will try to do this later.

On Sat, Jan 23, 2021 at 8:43 AM Mike Smith notifications@github.com wrote:

Hi Vince,

Thanks for the report. I'm already working through this in #39 https://github.com/grimbough/biomaRt/issues/39. I think it is somewhat GitHub specific as I haven't seen it anywhere else. I'm particularly baffled as to why the biomaRt's own R CMD check workflow action seems to work fine.

I've got a branch that probably still fails, but should print more diagnostics of the problem.

BiocManager::install('grimbough/biomaRt', ref = '3_12_testing')

It'd be awesome if you could install that version explicitly in a workflow and then point me to the output.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/grimbough/biomaRt/issues/40#issuecomment-766072377, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDI5QSRZB77OQAX3AZWHDDS3LHALANCNFSM4WPV7MFA .

-- The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance  HelpLine at http://www.partners.org/complianceline http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.

vjcitn commented 3 years ago

I used your 3_12_testing ref and had no problem. Thanks, can close if you like!

NathanSkene commented 3 years ago

Hi, we're getting the same issue occurring during Travis build checks for the EWCE package. Can't understand from above messages what you did to resolve this? Thanks

vjcitn commented 3 years ago

Can you force travis to use the biocmaRt imsage that gets installed via BiocManager::install('grimbough/biomaRt', ref = '3_12_testing')? Perhaps by using a Remotes: setting in DESCRIPTION?

grimbough commented 3 years ago

This should already be resolved in the sense that the fix has been pushed to the release branch of Bioconductor, but you'll need to wait for it to propagate through the build system. I pushed it a few day ago, so I'm surprised it hasn't made it yet, but when http://bioconductor.org/checkResults/release/bioc-LATEST/biomaRt/ ticks over to version 2.46.2 the issue should go away.

If you really need it now then it should be sufficient to install with:

BiocManager::install('grimbough/biomaRt', ref = 'RELEASE_3_12')
grimbough commented 3 years ago

It looks like 2.46.2 is now the version available from Bioconductor release. Hopefully that's the problem resolved. Please re-open this issue if you still experience the package failures.