replace require by library : http://yihui.name/en/2014/07/library-vs-require/