Getting Current Directory

R is a little more straightforward.

Python needs to import os .

Change work Directory

R needs /.

Python

If you put C:\ the chance is you will encounter a Unicode issue, using r'''...'''  will get rid of the issue.

Or you can just assign a directory to a variable.

Then assign later