title: Unable to load any package in R (unable to load shared object)
body: <p>I have been using R for the last 2 years. I tried to start the program yesterday to run one of my scripts and the packages that I am using failed to load. I am not sure what happened as it was working fine earlier. I tried to uninstall and re-install the software but it wasn't of any help. Here's the error I get when I require()/library() a package (for example ggplot2):</p>
  
  <pre><code>&gt;require(ggplot2)
  Loading required package: ggplot2
  Error in inDL(x, as.logical(local), as.logical(now), ...) : 
    unable to load shared object '//mypath/myuser/data/Documents/R/win-library/3.2/digest/libs/x64/digest.dll':
    LoadLibrary failure:  Access is denied.
  
  &gt;library(ggplot2)
  Error in inDL(x, as.logical(local), as.logical(now), ...) : 
        unable to load shared object '//mypath/myuser/data/Documents/R/win-library/3.2/digest/libs/x64/digest.dll':
        LoadLibrary failure:  Access is denied.
  </code></pre>
  
  <p>I have found many people asking the same question on different websites, but their main problem was with a specific package. I am having this trouble with all packages.
  Any ideas how I can solve this problem?
  Much appreciated.</p>