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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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