I have installed R (3.5.1) and R-studio (1.1.456) just now (using Anaconda). Then, I installed the raster package (2.9-5). Everything was okay, but when I tried to import, I got this message:
> library(raster)
Download required package: sp Error: package or namespace load failed for ‘raster’ in .doLoadActions(where, attach): error in load action .__ A __.1 for package raster: loadModule(module = "spmod", what = TRUE, env = ns, loadNow = TRUE): Unable to load module "spmod": cannot allocate vector of size 15759.3 Gb
Edit: The problem actual only windows 10. I tried it on Linux (Ubuntu 18.04) and everything is okay