UPDATE Also see this stack overflow post at https://stackoverflow.com/questions/46590002/warning-in-install-packages-unable-to-move-temporary-installation - Open McAfee Endpoint Security on your computer - Click on THREAT PREVENTION - Scroll down a little and unselect (turn off) Enable On-Access Scan
First read the post on at https://stackoverflow.com/questions/5700505/windows-7-update-packages-problem-unable-to-move-temporary-installation
During your active RStudio session, at the command prompt you can run:
trace(utils:::unpackPkgZip, edit=TRUE)
When the editing window pops up, scroll to line 142 and change
Sys.sleep(0.5)
toSys.sleep(2)
Click SAVE. This fixes the read/write time issue - BUT ONLY FOR THIS RSTUDIO SESSION YES, you will need to run during each RStudio session when you need to install new packages.
Copyright © Melinda Higgins, Ph.D.. All contents under (CC) BY-NC-SA license, unless otherwise noted.