Added export option to R files for namespace