R Check Current Directory Command