Unable to move temporary installation - installing dplyr

dplyr
package-installation

#1

Hello R community,
I'm trying to install dplyr package but i'm getting the following error:

> install.packages("dplyr")
also installing the dependency ‘BH’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/BH_1.66.0-1.zip'
Content type 'application/zip' length 17880018 bytes (17.1 MB)
downloaded 17.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/dplyr_0.7.6.zip'
Content type 'application/zip' length 2847359 bytes (2.7 MB)
downloaded 2.7 MB

package ‘BH’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘\\coral\users\MAmezquita\R\R-3.4.3\library\file1f6025077c9e\BH’ to ‘\\coral\users\MAmezquita\R\R-3.4.3\library\BH’
package ‘dplyr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘\\coral\users\MAmezquita\R\R-3.4.3\library\file1f605b61e0f\dplyr’ to ‘\\coral\users\MAmezquita\R\R-3.4.3\library\dplyr’

The downloaded binary packages are in
	C:\Users\mamezquita\AppData\Local\Temp\Rtmpg1F1VM\downloaded_packages

I tried already increasing the sys.sleep(0.5) to 2.5

> trace(utils:::unpackPkgZip, edit=TRUE) 
Tracing function "unpackPkgZip" in package "utils (not-exported)" 
[1] "unpackPkgZip"

Can anyone help me out?
Thank you!


#2

I assume you're referencing the top couple of solutions in the SO thread, below, which suggest adjusting sys.sleep()

From the other answers in that thread, it sounds like relevant information includes your OS, system privileges, and anti-virus software you may have running (e.g. corporate Windows 8 (no admin privileges) with McAfee, and I've tested this in R 3.4.0-3.4.3. described in this solution).

Have you tried any of the other answers/workarounds suggested? It sounds like your answer depends on your privileges and/or ability to turn anti-virus software on/off.