Run program in cmd

I make sum.R function call it in mean.R . How to run this mean function from cmd?
and How to give data e.g c(4,5,6) in cmd as input to my mean function?

For Windows you find some information in stackoverflow: running r-code from command line windows .

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.