user321627
user321627

Reputation: 2564

Running an Rscript command on Linux with a R file that contains whitespaces int eh name?

I currently am trying to run:

Rscript My Simulation From Jan 25.R

which gives me errors. My working directory is inside where the file

"My Simulation From Jan 25.R"

is held. I have tried various things, like:

1) "My Simulation From Jan 25.R"

2) "My\ Simulation\ From\ Jan\ 25.R"

3) $"My Simulation From Jan 25.R"

to no avail. Does anyone know what I can do?

Upvotes: 0

Views: 136

Answers (1)

annhak
annhak

Reputation: 662

Two notes:

1) Both single and double quotes should work.

2) Make sure that you run the command in the same directory where the file is located.

Results from a test run

Upvotes: 1

Related Questions