Closed wlandau closed 4 months ago
There is already a PR for this https://github.com/r-releases/r.releases.utils/pull/5
Thanks @shikokuchuo! Much appreciated! I created a new release with your contribution.
One might also consider checking that a release exists, but I do not think it is necessary.
To check that we'd probably need to interface with the APIs, and then it's a case of URL manipulation and a lot of extra work for not very much gain.
Did you have anything else to add to this issue?
I can't think of anything else. We might have to do more if https://github.com/r-releases/help/issues/13#issuecomment-1975153905 fails, but according to Jeroen it should succeed.
With #13 solved, I think we can close this one for now.
Hmm... I tried creating a test universe with a released repo that is not an R package, and I saw: https://github.com/r-universe/wlandau-test/actions/runs/8139061504/job/22241346983#step:3:61. I am not sure it is feasible to check for a DESCRIPTION file, and I think non-R-package registrations will not be as common, but it is worth pointing out.
Regardless, I still like how we handled #13.
I want to keep r.releases.utils:::assert_package_lite() the way it is, but r.releases.utils:::assert_package() might need more assertions. One that we are currently missing is to check if the URL is actually online. Anything else we are missing?