If you are being told that R 3.1.0 is up-to-date then you are using a mirror that is a year behind the current version, which you've already been advised is 3.2.0. Furthermore the current version of pkg:data.table is 1.9.5 from github and it says it only requires "R >= 2.14.0" so why a mirror would give you that error is a complete mystery. Updates of R within minor versions (from 3.1.0 to 3.1.2 or 3.1.3 for instance) are generally painless and let you avoid the gentle warnings (notice: not an error) such as you see such as "package ‘VIM’ was built under R version 3.1.2".
I'm also not seeing why data.table
would need VIM or stringi for that matter. Those packages are not in either the Improts or the Depends listing for 'data.table'. So I'm guessing there is a bunch of other code you have not provided that made the failed attempt at loading the data.table
-package.
Update to 3.1.3 (obtained from a more complete CRAN mirror than you appear to be using.) Then post the output of sessionInfo()
and maybe the output of
(mypacks <- installed.packages()[ , 1:3])
That would tell you what versions are currently in your library and whether you have multiple libraries. I wouldn't want to post that because for me
> nrow(mypacks)
[1] 1333
But for someone with only a few packages installed, it will give you a complete listing of your current versions and where they are on your drives. You could also post:
mypacks[ mypacks[, 'Package'] %in% c('data.table', 'stringi', 'VIM') , ]
### Output from my setup:
Package
data.table "data.table"
stringi "stringi"
VIM "VIM"
LibPath
data.table "/Library/Frameworks/R.framework/Versions/3.1/Resources/library"
stringi "/Library/Frameworks/R.framework/Versions/3.1/Resources/library"
VIM "/Library/Frameworks/R.framework/Versions/3.1/Resources/library"
Version
data.table "1.9.5"
stringi "0.4-1"
VIM "4.0.0"