Skip to content
Prev 4126 / 21307 Next

[Bioc-devel] avoiding call to ".find.package"

On 4 March 2013 09:57, Antti Honkela <antti.honkela at hiit.fi> wrote:
I believe the warnings result from changes to R r62077

prefer loaded namepaces in find.package
deprecate .find.package and .path.package

Biobase and affy (which our packages rely on) use .find.package.

$ grep .find.package Biobase/R/*
Biobase/R/packages.R:   pkgpath <- .find.package(package)
Biobase/R/vignettes.R:  vigrds = file.path(.find.package(pkgs),
"Meta", "vignette.rds")
Biobase/R/vignettes.R:      vigs = file.path(.find.package(pkgName),
"doc", vigMtrx[, "PDF"])

$ grep .find.package affy/R/*
affy/R/getCDFenv.R:    if (length(.find.package(cdfname, lib.loc=lib,
quiet=TRUE)) == 0)

I suspect that's were the warnings come from and were the fix should
be applied.

Hope this helps.

Best wishes,

Laurent