简体   繁体   English

编写R程序包,trimTrees和kknn不能自动安装

[英]Writing R package, trimTrees and kknn cannot be installed automatically

Recently my package on R-Forge failed to build on windows, not linux. 最近,我在R-Forge上的软件包无法在Windows而非Linux上构建。 Apparently packages kknn and trimTrees are not available. 软件包kknn和trimTrees显然不可用。 I cannot figure out why or why these two packages are different from randomForest or rgl which installs automatically. 我无法弄清楚这两个软件包为何或为何不同于自动安装的randomForest或rgl。 I have tried to include package names in description file in Depends-field and/or in Imports-field. 我试图在Depends字段和/或Imports字段的描述文件中包含程序包名称。 Nothing works... If installing my package from r-forge repos, with randomForest and trimTrees package removed, first mentioned will install automatically second will fail and have to be installed manually first. 什么都行不通...如果从r-forge仓库安装我的软件包,并且删除了randomForest和trimTrees软件包,则首先提到的将自动安装,其次将失败,必须首先手动安装。 Why is this? 为什么是这样?

I have already read the this answer 我已经读过这个答案

thanks alot, Soren 非常感谢Soren

description file: 说明文件:

 Package: forestFloor
 Type: Package
 Title: forestFloor
 Version: 1.4
 Date: 2015-05-19
 Author: Soeren Havelund Welling
 Maintainer: Soeren Havelund Welling <SOWE@DTU.DK>
 Depends: R (>= 3.0.0), randomForest, trimTrees, rgl, kknn
 Suggests:
 Description: Visualizes Random Forrest with feature contributions.
 SystemRequirements: OpenGL, GLU Library, zlib
 License: GPL-2
 Imports: Rcpp (>= 0.11.3), randomForest, trimTrees, rgl, kknn 
 LinkingTo: Rcpp 

namespace 命名空间

 useDynLib(forestFloor)

 importFrom(Rcpp, evalCpp)
 importFrom(randomForest, randomForest)
 importFrom(trimTrees, cinbag)
 import(rgl)
 import(kknn)

 S3method(plot,forestFloor)
 S3method(print,forestFloor)
 export(forestFloor,
        plot.forestFloor,
        print.forestFloor,
        box.outliers,
        recTree,
        vec.plot,
        convolute_ff,
        convolute_ff2,
        convolute_grid,
        show3d_new,
        fcol,
        randomForest,
        plot3d,
        kknn,
        persp3d)

-----------log file from r forge ---------- --------- r伪造的日志文件----------

  • using log directory 'R:/run/building/build_2015-05-19-12-04/RF_PKG_CHECK/PKGS/forestFloor.Rcheck' 使用日志目录'R:/run/building/build_2015-05-19-12-04/RF_PKG_CHECK/PKGS/forestFloor.Rcheck'
  • using R version 3.2.0 Patched (2015-05-16 r68378) 使用R版本3.2.0进行了修补(2015-05-16 r68378)
  • using platform: x86_64-w64-mingw32 (64-bit) 使用平台:x86_64-w64-mingw32(64位)
  • using session charset: ISO8859-1 使用会话字符集:ISO8859-1
  • using option '--as-cran' 使用选项'--as-cran'
  • checking for file 'forestFloor/DESCRIPTION' ... OK 检查文件“ forestFloor / DESCRIPTION” ...确定
  • checking extension type ... Package 检查扩展名类型...包
  • this is package 'forestFloor' version '1.4' 这是软件包“ forestFloor”版本“ 1.4”
  • checking CRAN incoming feasibility ... NOTE Maintainer: 'Soeren Havelund Welling ' New submission 检查CRAN传入的可行性...注意维护者:'Soeren Havelund Welling'新提交

The Title field is just the package name: provide a real title. “标题”字段仅是包名称:提供真实标题。 * checking package namespace information ... OK * checking package dependencies ... ERROR No repository set, so cyclic dependency check skipped *检查软件包名称空间信息...确定*检查软件包依赖性...错误未设置存储库,因此跳过了循环依赖性检查

Packages required but not available: 'trimTrees' 'kknn' 所需的软件包,但不可用:'trimTrees''kknn'

See section 'The DESCRIPTION file' in the 'Writing R Extensions' manual. 请参见“编写R扩展”手册中的“说明文件”部分。 * DONE *完成

Status: 1 ERROR, 1 NOTE See 'R:/run/building/build_2015-05-19-12-04/RF_PKG_CHECK/PKGS/forestFloor.Rcheck/00check.log' for details. 状态:1错误,1注​​意有关详细信息,请参见“ R:/run/building/build_2015-05-19-12-04/RF_PKG_CHECK/PKGS/forestFloor.Rcheck/00check.log”。

Run time: 6.77 seconds. 运行时间:6.77秒。

It turned out to be a current rForge server issue when it updated to R 3.2. 当它更新到R 3.2时,原来是rForge服务器的当前问题。 The problem can for now be fixed manually by contacting admin. 现在可以通过联系管理员手动解决此问题。 They're working on general fix also. 他们也在进行常规修复。

link to bug tracker 链接到错误跟踪器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM