Skip to content
Prev 45199 / 63424 Next

Recommended way to call/import functions from a Suggested package

Except the double colon method doesn't work (i.e. does not pass R CMD
check) unless you also import the package, which means it's no longer
just a suggestion - it must always be installed.

A simple test case (attached DESCRIPTION and R/test.r) yields this
warning on R CMD check:

* checking for unstated dependencies in R code ... WARNING
'::' or ':::' import not declared from: 'MASS'
See the information on DESCRIPTION files in the chapter 'Creating R
packages' of the 'Writing R Extensions' manual.

Hadley

Thread (22 messages)

Davor Cubranic Recommended way to call/import functions from a Suggested package Feb 22 Hadley Wickham Recommended way to call/import functions from a Suggested package Feb 22 David Winsemius Recommended way to call/import functions from a Suggested package Feb 22 David Winsemius Recommended way to call/import functions from a Suggested package Feb 22 Mark Leeds Recommended way to call/import functions from a Suggested package Feb 22 Mark Leeds Recommended way to call/import functions from a Suggested package Feb 22 Simon Urbanek Recommended way to call/import functions from a Suggested package Feb 22 Hadley Wickham Recommended way to call/import functions from a Suggested package Feb 22 Berwin A Turlach Recommended way to call/import functions from a Suggested package Feb 22 Davor Cubranic Recommended way to call/import functions from a Suggested package Feb 25 Davor Cubranic Recommended way to call/import functions from a Suggested package Feb 25 Hadley Wickham Recommended way to call/import functions from a Suggested package Feb 25 Martin Morgan Recommended way to call/import functions from a Suggested package Feb 25 Hadley Wickham Recommended way to call/import functions from a Suggested package Feb 25 Davor Cubranic Recommended way to call/import functions from a Suggested package Feb 25 Milan Bouchet-Valat Recommended way to call/import functions from a Suggested package Feb 26 Hervé Pagès Recommended way to call/import functions from a Suggested package Feb 26 Simon Urbanek Recommended way to call/import functions from a Suggested package Feb 26 Hervé Pagès Recommended way to call/import functions from a Suggested package Feb 26 Simon Urbanek Recommended way to call/import functions from a Suggested package Feb 26 Hervé Pagès Recommended way to call/import functions from a Suggested package Feb 26 Simon Urbanek Recommended way to call/import functions from a Suggested package Feb 27