[R] library(...,pos=) is not consistent

From: Russell Ivory <Russell.Ivory_at_merrickbank.com>
Date: Thu, 17 Jun 2010 11:11:21 -0600

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"     



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_at_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. Received on Thu 17 Jun 2010 - 17:14:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Jun 2010 - 17:40:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive