Rscript file path with space

后端 未结 4 1212
情话喂你
情话喂你 2020-12-21 00:46

I am trying to run the following R script in windows shell:

Rscript C:/Documents/Folder name containing space/myscript.txt

In this case I g

4条回答
  •  执笔经年
    2020-12-21 01:19

    Another convenient workaround was to create an alias for the portion of the path which contains spaces, i.e.:

    SUBST k: "c:\Folder with Spaces"
    rscript k:\scripts\program.R
    

提交回复
热议问题