hey gals, can I ask a super stupid R question?
If I have a script that only has something like Print "hello world" and I am at the R prompt that looks like a Chevron (running R on unix)
How do I run that script so that it prints
hello world
I imagine the syntax would look like
[command to run scripts] nameofscript.txt
hello world
But I'll be damned if I know what [command to run scripts] is.
I can use Rscript from the unix shell prompt to run the script, I just think there MuST be a way to just run a script from the live > prompt. I know this is so simple that no one ever explains how to do it online. I am so embarrassed that I can read R code but I can't do the most basic thing like run a macro from the >.
I have too many problems trying to make Rstudio work, so please don't suggest Rstudio.
TIA, if you can help. stata is so much nicer ime but someone sent some R code to do clever things