Complete names of installed libraries.
If the function being completed is either require() or library(), and if
the argument being completed is the first one, return the names of
installed packages. (Based on code written by Michael Lerch).