Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

szymanskir
Copy link
Owner

@szymanskir szymanskir commented Apr 6, 2025

Closes #29

It's only used to nicely format the comments data.frame

As a concencus if 'tibble' is already installed, we keep the previous behaviour, if not a regular data.frame is returned instead.
@szymanskir szymanskir requested a review from Copilot April 6, 2025 19:50
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 6 changed files in this pull request and generated 1 comment.

Files not reviewed (5)
  • DESCRIPTION: Language not supported
  • NAMESPACE: Language not supported
  • R/api.R: Language not supported
  • man/get_comments.Rd: Language not supported
  • tests/testthat/test-api.R: Language not supported

NEWS.md Outdated
Comment on lines 6 to 7
* `get_items_by_ids` now uses `httr2::req_perform_parallel` instead of `future.apply` to perform multiple asynchronous requests, so now there is no need to use `future::plan` before running functions that perform multiple requests such as `get_best_stories()`, `get_comments`, `get_lastest_ask_stories`, `get_latest_job_stories`, `get_lastest_show_stories`, `get_top_stories`, `get_new_stories`,

Copy link

Copilot AI Apr 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function names 'get_lastest_ask_stories' and 'get_lastest_show_stories' appear to contain a typo; consider renaming them to 'get_latest_ask_stories' and 'get_latest_show_stories' respectively.

Suggested change
* `get_items_by_ids` now uses `httr2::req_perform_parallel` instead of `future.apply` to perform multiple asynchronous requests, so now there is no need to use `future::plan` before running functions that perform multiple requests such as `get_best_stories()`, `get_comments`, `get_lastest_ask_stories`, `get_latest_job_stories`, `get_lastest_show_stories`, `get_top_stories`, `get_new_stories`,
* `get_items_by_ids` now uses `httr2::req_perform_parallel` instead of `future.apply` to perform multiple asynchronous requests, so now there is no need to use `future::plan` before running functions that perform multiple requests such as `get_best_stories()`, `get_comments`, `get_latest_ask_stories`, `get_latest_job_stories`, `get_latest_show_stories`, `get_top_stories`, `get_new_stories`,

Copilot uses AI. Check for mistakes.

@szymanskir szymanskir changed the title 29 tibble direct dependnecy Make tibble a soft dependency Apr 6, 2025
@szymanskir szymanskir force-pushed the 29-tibble-direct-dependnecy branch from 5c4a33a to 6553c21 Compare April 6, 2025 19:52
@szymanskir szymanskir merged commit 66d2ac7 into main Apr 6, 2025
7 checks passed
@szymanskir szymanskir deleted the 29-tibble-direct-dependnecy branch April 6, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove tibble::as_tibble to reduce dependencies

1 participant