Update buildDocs.R

Hi Ryan

I found that if I did not do builDocs:::validID, it will get an error saying cannot found validID function.
Merge pull request #1 from XiaosuTong/patch-1

Update buildDocs.R