Fixed a bug with packageVersion not working
Forgot to fix a typo in the R demo