Problem installing epiR

Hi all, tried to install epiR package and run with the following error. Please help.

Installing package into ‘C:/Users/Intel/Dropbox/PC/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
also installing the dependencies ‘proxy’, ‘e1071’, ‘wk’, ‘systemfonts’, ‘classInt’, ‘s2’, ‘units’, ‘gdtools’, ‘zip’, ‘BiasedUrn’, ‘pander’, ‘sf’, ‘zoo’, ‘flextable’, ‘officer’

package ‘proxy’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\Intel\Dropbox\PC\Documents\R\win-library\4.1’ for modifying
Try removing ‘C:\Users\Intel\Dropbox\PC\Documents\R\win-library\4.1/00LOCK

Error in library(epiR) : there is no package called ‘epiR’

R has problems with cloud-synced folders (Dropbox in your case), I recommend you to set your package library in a non-synced folder.

You can change the default library folder by setting your R_LIBS_SITE environmental variable in a .Reviron or .Rprofile file. For example:

# In a .Renviron file you can set it by adding a line like this one with the desired location 
R_LIBS_SITE="C:\\Program Files\\R\\R-4.1.2\\library"

For a more detailed explanation, you can read this blog post