Skip to content
Prev 948 / 12125 Next

[R-pkg-devel] duplicate function during build

Despite it might help, learning/using git is not tackling this specific problem, I suggest code that does:

sed -e 's/^[\ \t]*//' -e 's/#.*//' R/* | awk '/function/{print $1}' | sort | uniq -d

or

https://gist.github.com/setempler/7fcf2a3a737ce1293e0623d2bb8e08ed
(any comments welcome)

If one knows coding R, it might be more productive developing a tiny tool for that, instead of learning a new (and complex) one (as git).

Nevertheless, git is great!

Best wishes,

Sven

---

web:     www.templer.se
twitter: @setempler