I want to be able to load a library in a specified position using the pos= argument and have any subsequent library required by the one I'm loading go into a specified library as well. For example, in loading caret, it requires and loads lattice as well. When I specify that caret goes into position 9, lattice goes into position 2 by default. Is there a way to specify that by loading a library into position n, any subsequent library goes into, say, n+1 and so on? I need to reserve position 2.
> library(caret,pos=9) Loading required package: lattice > search() [1] ".GlobalEnv" "package:lattice" "package:foreign" "package:pwr" "package:stats" "package:graphics" [7] "package:grDevices" "package:utils" "package:caret" "package:datasets" "package:methods" "Autoloads" [13] "package:base" > Thanks Russell Ivory Merrick Bank South Jordan, UT ****************************************************************************This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom it is addressed. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error, and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender at Merrick Bank and delete it from your computer. Although Merrick Bank attempts to sweep e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.