devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Migrate httr to httr2 and Update Dependencies in devtools

Open jhk0530 opened this issue 8 months ago • 1 comments

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 avatar Apr 19 '25 12:04 jhk0530

#2602 #2603

jhk0530 avatar Apr 19 '25 12:04 jhk0530