ropensci / rentrez

talk with NCBI entrez using R
https://docs.ropensci.org/rentrez
Other
196 stars 38 forks source link

Nicer print functions for 'helper functions' entrez_db_* #27

Closed dwinter closed 9 years ago

dwinter commented 9 years ago

At present, the data.frames or lists returned byentrez_db_searchable and entrez_db_links don't have very special print functions, which means printing results to screen is often not very helpful. The data.frames have very long column names which overflow a terminal and the lists are just long

entrez_db_searchable("pubmed")$ALL
$Name
[1] "ALL"

$FullName
[1] "All Fields"

$Description
[1] "All terms from all searchable fields"

$TermCount
[1] "152970133"

$IsDate
[1] "N"

$IsNumerical
[1] "N"

$SingleToken
[1] "N"

$Hierarchy
[1] "N"

$IsHidden
[1] "N"

Ideally, a print function for these object should display the most useful data (Name, full name, perhaps description) and list other avaliable elements