Error: No GitHub `auth_token` is available.

Hello All ,

This is first time creating a package I am getting this error , before pushing it to Git , I am doing this on my personnel laptop , can you help me what to do next ?

use_readme_rmd( )

√ Setting active project to 'C:/Users/tatav/OneDrive/Documents/teaster1122'

√ Writing 'README.Rmd'

√ Adding '^README.Rmd$' to '.Rbuildignore'

  • Modify 'README.Rmd'

√ Writing '.git/hooks/pre-commit'

use_github(protocol = "https")

√ Checking that current branch is 'master'

Error: No GitHub auth_token is available.

See browse_github_token() for help storing a token as an environment variable.

browse_github_token()

√ Opening URL 'https://github.com/settings/tokens/new?scopes=repo,gist,user:email&description=R:GITHUB_PAT'

  • Call usethis::edit_r_environ() to open '.Renviron'.
  • Store your PAT (personal access token) with a line like:

GITHUB_PAT=xxxyyyzzz

  • Make sure '.Renviron' ends with a newline!

I HAVE OPENED RENVIRON FILE AND COPIED "NEW PERSONAL ACCESS TOKEN" I GOT FROM THE GIT HUB PAGE , WHAT SHOULD I NEED TO DO AFTER THIS ? PLEASE HELP ME , WHAT SHOULD I NEED TO GET MY PACKAGE INTO GIT

If you followed the steps indicated by browse_github_token() you then need to re-start R and then to run use_github(protocol = "https") again.