How to call R functions from command line and from within R shell

(Last Updated On: May 29, 2012)

How to call R functions from command line and from within R shell

R < --vanilla mean.R
R CMD BATCH mean.R

 

If you are trying to run the file from inside the R shell, that's wrong way.
You should type
> source("mean.R")
instead
This entry was posted in R and tagged , , , , , on by .

About Bryan D

I am part of a company called QuantLabs.Net This is specifically a company with a high profile blog about technology, trading, financial, investment, quant, etc. It posts things on how to do job interviews with large companies like Morgan Stanley, Bloomberg, Citibank, and IBM. It also posts different unique tips and tricks on Java, C++, or C programming. It posts about different techniques in learning about Matlab and building models or strategies. There is a lot here if you are into venturing into the financial world like quant or technical analysis. It also discusses the future generation of trading and programming Specialties:C++, Java, C#, quant, models, strategies, technical analysis, linux, windows