The system call errors on stuff like missing gh cli but not if something inside the gh cli goes wrong, e.g. lost internet connection or incorrect tag name. In these cases, system just throws a warning message and our workflows don't fail.
It's better to throw an error in these cases because we want to be altered with failing workflows. That's why I catch warnings with purrr::quietly and error if a warning has been thrown. The message returns both the R warning and the gh cli message.
The system call errors on stuff like missing gh cli but not if something inside the gh cli goes wrong, e.g. lost internet connection or incorrect tag name. In these cases, system just throws a warning message and our workflows don't fail.
It's better to throw an error in these cases because we want to be altered with failing workflows. That's why I catch warnings with purrr::quietly and error if a warning has been thrown. The message returns both the R warning and the gh cli message.