Add static analysis script; update .Rbuildignore