Skip to content

Which should I use? system.file() path.package() find.package()

2 messages · Kevin Wright, Uwe Ligges

#
On 19.04.2011 05:19, Kevin Wright wrote:
find.package() is the worst one: It will access all installed packages, 
that may be thousands and takes minutes...

path.package() is a non backward compatible function that makes use of 
system.file() and does not support to construct the full path to the 
file with one call.

Since you know the package is there after your loaded it successfully, 
just use

system.file()


Uwe Ligges