about test for multivariate normality with kolmogorov-smirnov test and $\chi^2$ test in R program [closed]

how can I test for multivariate normality with kolmogorov-smirnov test and $\chi^2$ test in R program?

-
if x is your data, ks.test(mahalanobis(x,colMeans(x),var(x)),pchisq,p), but actually you should use a re-scaled beta (though chi2 is close enough in practice) –  user603 Apr 5 '12 at 7:25