Hi,
I get the from this site but not working, im new in R.Net please help me what is my mistake.
i am using MVC.
Code
```
REngine.SetEnvironmentVariables();
// There are several options to initialize the engine, but by default the following suffice:
REngine engine = REngine.GetInstance();
// .NET Framework array to R vector.
NumericVector group1 = engine.CreateNumericVector(new double[] { 30.02, 29.99, 30.11, 29.97, 30.01, 29.99 });
engine.SetSymbol("group1", group1);
// Direct parsing from R script.
NumericVector group2 = engine.Evaluate("group2 <- c(29.89, 29.93, 29.72, 29.98, 30.02, 29.98)").AsNumeric();
// Test difference of mean and get the P-value.
GenericVector testResult = engine.Evaluate("t.test(group1, group2)").AsList();
double p = testResult["p.value"].AsNumeric().First();
```
ERROR
```
Error: could not find function "t.test"
```
Give me the suggestion.
Thanks.
Comments: You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the stats package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.