I have a R program in a txt file say \"functions.txt\". I load the \"functions.txt\" file the R using source(\"function.txt\") a
\"functions.txt\"
source(\"function.txt\")
Here's a command line script, based on code above:
d:\misc2\bin\Rscript.exe d:\r_code\mycode.r
Using Windows 7, I ran it as a .bat file. Works fine. Thanks for the tip. (of course, these are just my particular subdirectories)