[R] checking generic/method consistency

Arne Henningsen ahenningsen at email.uni-kiel.de
Fri Sep 26 17:03:02 CEST 2003


Hi,

I wrote a package for linear programming and want to submit it to CRAN. 
Since the package 'quadprog' has a function with the name 'solve.QP' to 
perform Quadratic Programming, I named my (main) function 'solve.LP'. 
However 'R CMD check' gives one warning:

* checking generic/method consistency ... WARNING
solve:
  function(a, b, ...)
solve.LP:
  function(cvec, bvec, Amat, maximum, maxiter, verbose)

while 'R CMD check' gives no warnings when the function has the name 
'solve.QP'.

What do you recommend me to do?
1) Ignore the warning and upload the package to CRAN as it is?
2) Rename the function? (any suggestions?)
3) Change something that avoids this problem without renaming the functions?

I would prefer the third point, but I don't know how.

Thank you for your answers,

Arne

-- 
Arne Henningsen
Department of Agricultural Economics
Christian-Albrechts-University Kiel
24098 Kiel, Germany
Tel: +49-431-880-4445
Fax: +49-431-880-1397 
ahenningsen at email.uni-kiel.de
http://www.uni-kiel.de/agrarpol/ahenningsen.html




More information about the R-help mailing list