0

I would like to call Rscript without a proper script, just by writing it in a console. is it possible? something like

c:/path/to/R/bin/Rscript.exe "here is a R code, not a R file"

I am on Windows.

RockScience
  • 17,932
  • 26
  • 89
  • 125

1 Answers1

1

Run Rscript with -e argument:

Rscript -e "getwd()"
Toolbox
  • 2,333
  • 12
  • 26