Skip to content

AnnotationHub does not display when package is not installed #71

Description

@lshep

In ExperimentHub we get the following if the source of the resource package is not installed

GSE62944 not installed.
  Full functionality, documentation, and loading of data might not be possible without installing
Install GSE62944 [yes/no] no

To indicate sometime a package is needed to load or read a resource.
We do not appear to have this implemented in AnnotationHub

> ah = AnnotationHub()
snapshotDate(): 2026-07-30
> CENTREannotgeneDb <- ah[["AH116730"]]
loading from cache
Error loading resource.
 attempting to re-download
downloading 1 resources
retrieving 1 resource

loading from cache
Error: failed to load resource
  name: AH116730
  title: GENCODE basic gene annotation v40
  reason: this db is of type CENTREannotDb but this is not a defined class
In addition: Warning message:
call dbDisconnect() when finished working with a connection 

But it does work correctly if the package is installed...

> library("CENTREannotation")
> ah= AnnotationHub()
snapshotDate(): 2026-07-30
> CENTREannotgeneDb <- ah[["AH116730"]]
downloading 1 resources
retrieving 1 resource

loading from cache

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions