簡體   English   中英

R Travis CI錯誤:建議使用包裝,但不可用:'ridge'

[英]R Travis CI error: Package suggested but not available: ‘ridge’

我正在嘗試為我的R軟件包之一運行Travis CI。 問題是構建失敗並出現錯誤,指出該軟件包的一個依賴項不可用(名為“ ridge”的軟件包)

這里的錯誤日志:

* checking extension type ... Package
* this is package ‘imputeR’ version ‘2.1’
* checking package namespace information ... OK
* checking package dependencies ... ERROR
Package suggested but not available: ‘ridge’
The suggested packages are required for a complete check.
Checking can be attempted without them by setting the environment
variable _R_CHECK_FORCE_SUGGESTS_ to a false value.
See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
* DONE
Status: 1 ERROR
See
 ‘/home/travis/build/SteffenMoritz/imputeR/imputeR.Rcheck/00check.log’
for details.
0.38schecking package dependencies ... ERROR
Package suggested but not available: ‘ridge’

這也是Travis構建的鏈接: https : //travis-ci.org/SteffenMoritz/imputeR/builds/436334069

Travis不可用的軟件包是當前在CRAN上的普通軟件包。 這可能與ridge ..需要Gnu科學圖書館版本> = 1.14有關嗎? 我能以某種方式解決這個問題嗎?

您說對了,這是正確的,因為ridge需要一個默認未安裝在travis上的外部庫(Gnu Scientific庫)。

Travis CI文檔詳細說明了如何安裝外部軟件包。

對於您的情況,您需要添加

addons:
  apt:
    packages: libgsl0-dev

到您的.travis.yml

找到了至少讓TRAVIS完成檢查的解決方案

您可以將其添加到Travis配置yaml文件中:

env:
 global:
   - _R_CHECK_FORCE_SUGGESTS_: false

據我了解,缺點是:包括建議軟件包在內的所有內容都不會被檢查。 因此,解決方案並不完全令人滿意。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM