r caret - Unable to view source code of a package in R -


i trying view source code of function knnreg in caret.

> getanywhere(knnreg.default) single object matching ‘knnreg.default’ found found in following places   package:caret   registered s3 method knnreg namespace caret   namespace:caret value  function (x, ...)  {     if (!any(class(x) %in% "formula"))          stop("knnreg implemented formula objects") } <environment: namespace:caret> 

what's happening? source code?

i think error message pretty obvious:

knnreg implemented formula objects

use getanywhere(knnreg.formula) see source code.


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -