add namespace file to R template