[Rd] 'library' or 'require' call to package which was already attached by Depends

alexios ghalanos alexios at 4dscape.com
Thu Sep 5 07:18:52 CEST 2013


Hello,

I'm receiving the following NOTE during recent checks of the rmgarch
package:

'library' or 'require' call to 'rugarch' which was already attached by
Depends.

which I traced to the recent changes in R 3.02 Utilities:

 • packages which are used in ‘library()’ or ‘requires()’ calls in the R
code but were already put on the search path _via_ ‘Depends’.

However, the code uses the 'library()' call (of a package which is in
'Depends') inside the 'parallel::clusterEvalQ' function which is given
as an option to users for running certain routines in parallel.

Would it be possible to make allowances for this instance of the use of
'library()' or suggest a way to call 'clusterEvalQ' with 'library'
without triggering the NOTE?

Thanks,

Alexios



More information about the R-devel mailing list