Vladimir Eremeev
2007-Apr-06 09:29 UTC
[R] how to exclude some packages from help.search() ?
I have installed RGTk2 to satisfy other package requirements. I am not planning to use it in my own work. Occasionally I search through the R help using the help.search() function, and every time it returns me lots of references to the functions in the RGtk2 package, which I don't need. I would like to avoid them. At present, I have renamed the file hsearch.rds in the RGtk2 directory. This worked, however, help.search now gives a warning, that it didn't find that file. Is there any other way to avoid extraneous information, returned by help.search, which is not such crude as mine? -- View this message in context: http://www.nabble.com/how-to-exclude-some-packages-from-help.search%28%29---tf3535954.html#a9869861 Sent from the R help mailing list archive at Nabble.com.
Prof Brian Ripley
2007-Apr-06 09:43 UTC
[R] how to exclude some packages from help.search() ?
On Fri, 6 Apr 2007, Vladimir Eremeev wrote:> > I have installed RGTk2 to satisfy other package requirements. > I am not planning to use it in my own work. > > Occasionally I search through the R help using the help.search() function, > and every time it returns me lots of references to the functions in the > RGtk2 package, which I don't need. > I would like to avoid them. > > At present, I have renamed the file hsearch.rds in the RGtk2 directory. > > This worked, however, help.search now gives a warning, that it didn't find > that file. > > Is there any other way to avoid extraneous information, returned by > help.search, which is not such crude as mine?Use the package= argument to say which packages you want, or even install little-used packages in a different library and use lib.loc= (or only have that library in .libPaths() when you need it). -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595