3
制定了一系列的.Rbuildignore
看起來是這樣的:隱藏.Rproj.user當建築包裝RStudio
^.*[.]Rproj.*$
^\.Rproj\.user$
^.Rhistory$
[~]
然而R CMD check mypackage --as-cran
回報:
* checking for hidden files and directories ... NOTE
Found the following hidden files and directories:
.Rproj.user
從閱讀四周,看起來這是一個「功能不是bug「。但是,我怎樣才能防止.Rproj.user
出現在軟件包文件中呢?或者我的正則表達式有問題嗎?
就是這樣。我愚蠢地認爲,因爲我不必在檢查時指定文件名,所以我不必檢查。謝謝! –