A factory to generate R standalone scripts from R packages