Skip to content
Prev 1954 / 21312 Next

[Bioc-devel] Creating a package, Error in match.arg(units)

S?bastien Laigre wrote:
Your own package should have a name space, and if you use functions from
Hmisc you should import just those

importFrom(Hmisc, foo, bar, baz)

If you are importing from Hmisc, then the DESCRIPTION file should have
Imports: Hmisc. If there are still problems, you can fully qualify the
symbols that you want

  base::units

It might be that there is still a problem, e.g., a third package that
does not have a name space but uses units, and so must find 'units' on
the search() path. In this case you must work around this by convincing
the third party author to use a name space, not use the third package,
or not use Hmisc.

Martin