All, I have used package.skeleton, edited the .Rd files and the DESCRIPTON file. In one of my package functions I am using RODBC so I have a line of code that reads: require(RODBC). In my DESCRIPTION file I have the following relevant line: Depends: R (>= 2.9.0), RODBC However, when I do a check (Rcmd check my_package_name) I get this warning: * checking for unstated dependencies in R code ... WARNING 'library' or 'require' calls not declared from: RODBC See the information on DESCRIPTION files in the chapter 'Creating R packages' of the 'Writing R Extensions' manual. Does anyone know where I have gone astray? Thank you. Jeff Breiwick
Package creation - require statement?
2 messages · Jeff Breiwick, Brian Ripley
On Fri, 18 Dec 2009, Jeff Breiwick wrote:
All, I have used package.skeleton, edited the .Rd files and the DESCRIPTON file. In one of my package functions I am using RODBC so I have a line of code that reads: require(RODBC). In my DESCRIPTION file I have the following relevant line: Depends: R (>= 2.9.0), RODBC However, when I do a check (Rcmd check my_package_name) I get this warning: * checking for unstated dependencies in R code ... WARNING 'library' or 'require' calls not declared from: RODBC See the information on DESCRIPTION files in the chapter 'Creating R packages' of the 'Writing R Extensions' manual. Does anyone know where I have gone astray? Thank you.
Using require(RODBC): the Depends declaration already loaded RODBC.
Jeff Breiwick
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595