fix tests
refactor: extract function github_api
allow installing the latest GitHub release by passing release = TRUE to, or using the syntax "user/repo@*" in install_github
update NEWS
supply test