mardi 31 mars 2015

Is there a way for Windows to return the path to a directory as Linux does?

In Windows a path to a directory is something like: C:\Users\Name


In Linux it should be something like: /home/name


In the R programming language backslashes are an escape character, therefore a path (even on a Windows system) must be written either as C:/Users/Name or C:\\Users\\Name. When the path is too long it is rather tiring to retype every slash.


Is there anyway in which Windows returns the path with double backslashes or one slash? If not, is there a simple way in R to change the path so that R can understand it?


Thank you very much.


Aucun commentaire:

Enregistrer un commentaire