19

I tried to install package data.table in R. This error showed up. Could anyone resolve this?

MichaelChirico
  • 33,841
  • 14
  • 113
  • 198
Punya Swaroop
  • 203
  • 1
  • 2
  • 4

2 Answers2

37

I assume you're on Windows. You may have data.table loaded into your session already; on Windows, dlls that are part of a package can't be unloaded until R shuts down. So restart R and then try running install.packages again.

Hong Ooi
  • 56,353
  • 13
  • 134
  • 187
3

Try running R with admin access (sudo in Linux, or for Windows, right click and choose "Run as Administrator"). I had the same problem when running R from PowerShell in Windows, and this fixed it.

Eric
  • 297
  • 3
  • 7