Remote authentication in RStudio

Hi all,
I’ve been using GitHub to back up code that I’ve developed in R using the IDE RStudio and it’s GitHub interface. I was on leave from my PhD for a few months and there have been some security changes since then including requiring a personal access token for remote access. I followed the instructions here: Creating a personal access token - GitHub Docs, and then followed the section on “Using a token on the command line” to remote in. However, I got an error saying “remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.” I did use my PAT. How can I fix this?
Thanks,
Corrina