Domanda

I wonder if there's aptitude (one of Debian's package manager) like functionality in R to find available packages from repos? For finding and installing packages via find.package(x) and install.packages(x) one should know the exact name of the package. Is there a similar command to aptitude search x or apt-cache search x to make a search and then pick the exact name of the package from the returned list?

È stato utile?

Soluzione

In addition to the sos package you may be interested in the RSiteSearch function which (given that you have a working internet connection) will search for keywords in all the packages on CRAN. By default it will search function help pages, vignettes, and the task views on CRAN and give you links to everything it finds (there are also options for the sorting) so you can see which package(s) are linked. You do not need to have the packages installed on your local machine like ?? or help.search. Also consider browsing through the task views on CRAN, they can tell you of packages that may be of interest and can also give advice on which package to use when there are multiple packages that appear to fit your needs.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top