Display the object, by printing, plotting or whatever suits its class. This function exists to be specialized by methods. The default method calls showDefault.

Formal methods for show will usually be invoked for automatic printing (see the details).

show(object)

# S4 method for EggNOG
show(object)

# S4 method for PANTHER
show(object)

Arguments

object

Any R object

Value

show returns an invisible NULL.

Details

Objects from an S4 class (a class defined by a call to setClass) will be displayed automatically is if by a call to show. S4 objects that occur as attributes of S3 objects will also be displayed in this form; conversely, S3 objects encountered as slots in S4 objects will be printed using the S3 convention, as if by a call to print.

Methods defined for show will only be inherited by simple inheritance, since otherwise the method would not receive the complete, original object, with misleading results. See the simpleInheritanceOnly argument to setGeneric and the discussion in setIs for the general concept.

Note

Updated 2019-08-07.

See also

showMethods prints all the methods for one or more functions.

Examples

options(acid.test = TRUE) ## EggNOG ==== x <- EggNOG() show(x)
#> EggNOG 0.11.6 of length 2 #> ids(10): COG5153 COG5156 ... ENOG410KJ10 ENOG410KJ1P #> categories(18): 1 2 ... 17 18
## PANTHER ==== x <- PANTHER("Homo sapiens", progress = FALSE)
#> Downloading PANTHER annotations for homo_sapiens (current_release).
#> Obtaining HGNC to Ensembl gene ID mappings.
#> Decompressing hgnc.txt.gz in tempdir().
#> Importing hgnc.txt using data.table::fread().
#> hgnc.txt.gz does not return syntactically valid names.
#> Splitting and sorting the GO terms.
show(x)
#> PANTHER 0.11.6 of length 9 #> organism: homo_sapiens #> release: current_release #> genes(10): ENSG00000010219 ENSG00000075188 ... ENSG00000197140 ENSG00000213886