PAT - how to use it ?

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:

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


1 Like

Yes this is ok. You can follow advice from here


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