If your question's been answered, would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:
P.S. Since the problem was not related to the RStudio IDE, I've moved this thread to a different category.