devtools
devtools copied to clipboard
Migrate httr to httr2 and Update Dependencies in devtools
Migration from httr to httr2:
- Replaced
httrdependency withhttr2in 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) andmime(≥ 0.13) toDESCRIPTION. - Updated
NAMESPACEto include necessary imports fromhttr2,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 fromhttrtoutils.Rsincehttr2::req_body_multipartrequires to input made bycurl::form_file. -
R CMD Check was fine
-
source_urlwas fine -
check_mac_releasewas fine -
submit_cran(containsupload_cran) was fine, but need double check.
#2602 #2603