使用 Roxygen 忽略文件
我对包创建/管理很陌生(并且不愿意学习),所以如果我问一些微不足道的问题,请原谅我。不过,我熟悉 git
,并且我想知道 roxygen
中是否有与 .gitignore
类似的功能。由于我使用 ESS
,我经常有很多备份文件 (*~
),然后使用 R CMD roxygen
拾取并处理这些文件。当然,我想以更优雅的方式跳过它 - 现在我有一个 shell 脚本,其中 find anolyzer/ -name "*~" -exec rm {} \;
可以刷新令人讨厌的备份......但我有点需要它们,并且只想在安装时忽略它们。
免责声明: 不愿意学习 = 不愿意梳理冗长的手册,并渴望简洁、快速和脏话
归功于John Myles White 强调“不愿意”部分
I'm quite new in (and unwilling to learn) package creation/administration, so excuse-moi if I'm asking something trivial. I'm familiar with git
, though, and I'd like to know if there's a similar functionality to .gitignore
in roxygen
. Since I use ESS
, I often have a lot of backup files (*~
), which are then picked up and processed with R CMD roxygen
. Of course, I'd like to skip that in a more elegant manner - right now I have a shell script with find anolyzer/ -name "*~" -exec rm {} \;
that flushes the nasty backups... but I kind-of need them, and just want to ignore them on install.
Disclaimer:
unwiling to learn = unwilling to comb down the lengthy manuals and desperate for neat, quick and dirty one-liner
credits to John Myles White for stressing the "unwilling" part
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道有什么方法可以专门使用 Roxygen/2 忽略文件,但有许多选项可以避免该问题。
I'm not aware of a way to ignore files with Roxygen/2 specifically, but there are a number of options available to avoid the problem.