get_comments | R Documentation |
Retrieves all comments under an item using Hacker News API
get_comments(item)
item |
item whose children (comments) will be retrieved |
dataframe of all comments under an item
story <- get_item_by_id(21499889)
comments <- get_comments(story)
# Convert to a tibble to improve formatting
# as comment content might long
tibble::as_tibble(comments)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.