yixuan/rationalfun — comment on commit e80993fa8a4410754f27c30889c02ab8058ba42e
File: R/rf_base.R line 49
By yixuan:

"importFrom" means to import functions from the specified package. In this case, this package will import the "deriv" and "predict" functions defined in stats package. "deriv" and "predict" are generic functions, meaning that each class has its own implementation, and in rationalfun they are "deriv.rationalfun" and "predict.rationalfun". So what is really imported is the definition of the function, not its implementation.
The importFrom keyword can be written in any part of the document. However, maybe I should move this line to the beginning of deriv.rationalfun or predict.rationalfun.

BTW, I'm not so familiar with the comment functionality in github. Can you see this reply?