在Mac OS X上,加载data.table.
不需要chron
。在Windows上,它是必需的。
如果没有,我怎样才能在尝试加载data.table
(或类似)之前检测这些操作系统特定的差异?
MAC上的输出:
require(data.table,lib.loc =' packrat / lib / x86_64-apple-darwin10.8.0 / 3.1.1') sessionInfo() R版本3.1.1(2014-07-10) 平台:x86_64-apple-darwin10.8.0(64位)
区域设置: [1] en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
附加基础包:
[1] stats graphics grDevices utils数据集方法
[7]基地
其他附件包: [1] data.table_1.9.2
通过命名空间加载(而不是附加): [1] plyr_1.8.1 Rcpp_0.11.3 reshape2_1.4 stringr_0.6.2 [5] tools_3.1。
库文件夹中的其他文件:
list.dirs('packrat/lib/x86_64-apple-darwin10.8.0/3.1.1', full.names=FALSE, recursive=FALSE)
[1] "colorspace" "data.table" "dichromat" "digest"
[5] "ggplot2" "gtable" "labeling" "manipulate"
[9] "MASS" "munsell" "packrat" "plyr"
[13] "proto" "RColorBrewer" "Rcpp" "reshape"
[17] "reshape2" "rstudio" "scales" "stringr"
[21] "yaml"
标准R库文件夹:
list.dirs('/Library/Frameworks/R.framework/Resources/library', full.names=FALSE, recursive=FALSE)
[1] "base" "compiler" "datasets" "graphics" "grDevices"
[6] "grid" "lattice" "MASS" "Matrix" "methods"
[11] "nlme" "parallel" "splines" "stats" "stats4"
[16] "tcltk" "tools" "utils"