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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -