Trouble with install packages (windows 10)

Hello everyone,

I am having trouble with installing any package to my rstudio. Every time, I try to install a package, a message appears which says "Would you like to use a personal library?" and the following warning message appears

Version:1.0 StartHTML:0000000107 EndHTML:0000001202 StartFragment:0000000127 EndFragment:0000001184

Warning in install.packages : cannot create dir 'C:\Users\billy\OneDrive???????', reason 'Invalid argument' Error in install.packages : unable to create ‘C:/Users/billy/OneDrive/???????/R/win-library/3.6’.

I tried installing the packages from R 3.6.1, but it didn't work too. Please, any advice will be very helpful and it will be really appreciated.

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version: 1.2.5001
  • OS Version:
  • R Version: 3.6.1

From Troubleshooting Guide: Using RStudio

Try installing to a non cloud-synced folder like the system library folder

install.packages("tidyverse", lib = "C:\\Program Files\\R\\R-3.6.1\\library")

Have in mind that you have to run Rstudio as administrator for being able to install here

1 Like

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