New to using python (in general) in RStudio but it seems that the __file__
keyword is not recognized by RStudio. I would normally set the working dir with something like:
dir = os.path.dirname(__file__)
os.chdir(dir)
But when run in the RStudio IDE this does not work. Any advice or either how to recognize __file__
or setting the working dir without __file__
?