How to escape whitespace when running Rscript from command line?

时间:2019-01-18 18:33:50

标签: r bash command-line

I am currently trying to call Rscript on a file that has white spaces:

Rscript "File Name with White Spaces.R"

and it keeps giving an error that the file could not be found. I have tried to add in escapes, such as

Rscript "File\ Name\ with\ White\ Spaces.R"

all the way up to three escapes, but to no avail. Is there a simple trick to doing this? Thanks.

0 个答案:

没有答案
相关问题