remove compiler warnings with the help of four new utility functions

fixes Sharpie/RTikZDevice#68
Merge pull request #2 from krlmlr/master

install pgf (tikz.sty is required for the tests), package help as Roxygen file
Merge pull request #3 from krlmlr/68-c-warnings

remove compiler warnings with the help of four new utility functions