The ipumsr package helps import IPUMS extracts into R. If you are trying to run code and having trouble, it will be easier to answer your question if you follow the principles of the tidyverse’s reprex. The one exception is that you should not upload your data, but a description of your extract would be helpful (include which samples, variables, file type, etc.).
The ipumsr package can be installed by running the following command:
install.packages("ipumsr")