[Rd] Doc suggestion for detach (and library) (PR#1213)

murdoch@stats.uwo.ca murdoch@stats.uwo.ca
Thu, 13 Dec 2001 16:26:46 +0100 (MET)


The example in ?detach says

     ## could equally well use detach("package:eda")
     ## but NOT  pkg <- "package:eda"; detach(pkg)

It would be helpful if the code to do what was meant above was given,
e.g.

     ## Instead, use

     library(eda)
     pkg <- "package:eda"
     detach(pos = match(pkg,search()))

It might also be helpful to include a "character.only" example in the
help for library.

Duncan Murdoch

--please do not edit the information below--

Version:
 platform = i386-pc-mingw32
 arch = x86
 os = Win32
 system = x86, Win32
 status = Under development (unstable)
 major = 1
 minor = 4.0
 year = 2001
 month = 12
 day = 13
 language = R

Windows 98 4.10 (build 1998)  

Search Path:
 .GlobalEnv, package:ctest, Autoloads, package:base


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._