Thanks for the really nice crul package. I would like to use it to create a R api package but I have an issue.
I tried to dig into the documentation with no success.
I want to know how to do basic http (or other methods) authentication like in Python requests or with R package httr.
Here are two examples of what I want to achieve with crul (let me know if it is right place such question or I should as it at SO).
We didn’t have anything to support that yet - though you could do it with curl options yourself, but that’s a bit tedious if you aren’t familiar with them.
Reinstall devtools::install_github("ropensci/crul") and see ?auth
@OKohesta The crul package has been effectively retired, and rOpenSci now generally recommends the {httr2} package in place of crul. And I don’t think you can explicitly do what you’re asking with crul; see this issue, which auto-encodes all query parameters using curl::curl_escape(). {httr2} has straightforward ways to handle base64-encoded secrets. Hope that helps
It’s really sad to hear. I love the package and used it in several packages, some on CRAN.
Last time I checked, httr2 didn’t have all the features crul have, particularly for async requests. Is there an issue or a better place to discuss it, including how to transition if it required to do so.
Sorry, I wrote without checking, but it does seem that Scott has once again been actively maintaining the package recently, so I guess if you open an issue on the GitHub repo he may respond.
crul absolutely is not retired in any way. @dickoa I’m still maintaining it! Please do open any issues in that repo. I would say crul is stable at this point, but I can make fixes/add new features as time allows.
I’m glad to hear that, and I’ll also see how to better support the package in the fure. I use httr2 for interactive and basic requests, but I still prefer crul to build API wrapper and R packages.
Thanks again for maintaining this package.
Thanks Mark. And I see deposits is still going strong, thanks for taking that over
I will say though that crul - like all my open source projects - doesn’t get as much attention as they did when I worked here since it’s in my free time, unless I can link it to work somehow :scheming: