R包(及其依赖项)操作系统是否具体?

在Mac OS X上,加载data.table. 不需要chron 。 在Windows上,它是必需的。

  • Mac或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位)

    locale:[1] en_US.UTF-8 / zh_CN.UTF-8 / zh_CN.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"
    
    链接地址: http://www.djcxy.com/p/91597.html

    上一篇: Are R packages (and their dependencies) OS specific?

    下一篇: Autolayout bug with UIAlertView/Controller?