I have tried to install packages but I got the problem shows like this;
https://cran.rstudio.com/bin/windows/Rtools/
Warning in install.packages : 'lib = "C:/Program Files/R/R-3.6.1/library"' is not writable
Warning in install.packages : cannot create dir 'C:\Users\khong\OneDrive\??????', reason 'Invalid argument'
Error in install.packages : unable to create ‘C:/Users/khong/OneDrive/??????/R/win-library/3.6
It seems like you have non-ASCII characters in your user library path, R has problems with that. Try running RStudio as administrator so you can install to this path C:/Program Files/R/R-3.6.1/library
https://cran.rstudio.com/bin/windows/Rtools/
Warning in install.packages : 'lib = "C:/Program Files/R/R-3.6.1/library"' is not writable
Error in install.packages : unable to install packages
> install.packages("ithir")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/
Warning in install.packages : 'lib = "C:/Program Files/R/R-3.6.1/library"' is not writable
Error in install.packages : unable to install packages
>
This suggests you are not running RStudio as administrator, otherwise you would have write permissions for that folder, does your user has administrative rights?
Also you need to install Rtools if you want to install packages from source on windows systems, you can download it from here