PAT - how to use it ?

Hi,
when I receive 401 error like: GitHub API error (401): 401 Unauthorized
Message: Requires authentication.
What should I do ?

I have set up a PAT and I placed it in .Renviron file which is situated in R home directory.
a line of code in .Renviron file looks like this:
GITHUB_PAT="my_PAT_numbers_"

Is it OK if this PAT is placed in .Renviron ?
Should I use it every time when I use github API ?

Regards,

1 Like

Yes this is ok. You can follow advice from here

2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.