Errors if the package or repository is not set up correctly, and advises on possible solutions.

rhub_doctor(gh_url = NULL)



Use NULL for the package in the current working directory. Alternatively, use the URL of a GitHub repository that contains an R package that was set up to use with R-hub.