Skip to content

Migrate httr to httr2 and Update Dependencies in devtools #2604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jhk0530
Copy link

@jhk0530 jhk0530 commented Apr 19, 2025

Migration from httr to httr2:

  • Replaced httr dependency with httr2 in relevant functions for better handling of HTTP requests.
  • Updated related functions (check_mac_release, upload_cran, etc.) to use httr2 APIs (request, req_body_multipart, req_perform, etc.).

Dependency Updates:

  • Added httr2 (≥ 1.1.2) and mime (≥ 0.13) to DESCRIPTION.
  • Updated NAMESPACE to include necessary imports from httr2, mime, and other packages.

But, If it doesn't fit with the direction of the package, feel free to modify it with a Suggests

Note

  • Copied same upload_file() function from httr to utils.R since httr2::req_body_multipart requires to input made by curl::form_file.

  • R CMD Check was fine
    스크린샷 2025-04-19 오후 9 31 15

  • source_url was fine
    스크린샷 2025-04-19 오후 9 32 51

  • check_mac_release was fine
    스크린샷 2025-04-19 오후 5 47 54

  • submit_cran (contains upload_cran) was fine, but need double check.
    스크린샷 2025-04-19 오후 9 34 03

jhk0530 added 2 commits April 19, 2025 21:10
see r-lib#2603

load_all, reexports have no modifications this time, but when you create a document, it will automatically reflect the previous modifications.
see r-lib#2602

I copied same upload_file function from httr to utils.R since httr2::req_body_multipart requires to input made by curl::form_file.
@jhk0530
Copy link
Author

jhk0530 commented Apr 19, 2025

#2602 #2603

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.

1 participant