add r folder and sub files