Error in installing ipumsr

So I was trying to get a dataset from IPUMS USA for RStudio, but when I download the package for opening the dataset, the following error message appeared:

Warning in install.packages :
cannot create dir ‘C:\Users\15774\OneDrive??’, reason ‘Invalid argument’
Error in install.packages : unable to create ‘C:/Users/15774/OneDrive/??/R/win-library/4.1’
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :

I have tried updating RStudio and reinstalling, but I still cannot download the package, could someone help with this?

A possible solution to this issue is to create a new text file called “.Renviron” in your home directory. You can find your home directory with R using Sys.getenv(“HOME”). Then, add the line R_LIBS_USER = “C:/Users/15774” to the file and save. Try to restart RStudio and add the package again. This should solve the issue. Please follow up if this solution doesn’t work for you.