7
有沒有辦法在依賴於OS類型的包的建議字段中執行ifelse語句。例如,installr
軟件包對於Windows用戶來說很好,而且與軟件包密切相關,但它僅適用於Windows用戶。這意味着在Mac或Linux用戶的CRAN檢查中會發出一條提示。If/else建議包描述
目前,我有一個包,看起來是這樣的:
Package: awesomeR
Type: Package
Title: A collection of awesomeness
Version: 0.1.2
Date: 2013-02-18
Author: Guy Smiley
Maintainer: Guy <[email protected]>
Description: it's pretty nifty
License: GPL-2
URL: http://crazyville
LazyData: TRUE
Depends:
R (>= 2.15)
Suggests:
pander,
installr,
也許答案是要麼表明,它(並接受票據)或沒有。
這是問題是關於包開發。我不喜歡在CRAN支票上記下筆記。 – 2013-03-14 22:02:16