Searches for packages on CRAN based on the user's specification of search terms. Considers the package name, description as well as the long description, and prioritizes the results.
findPackage( keywords = NULL, query = NULL, mode = "or", case.sensitive = FALSE, always.sensitive = NULL, weights = c(2, 2, 1, 2), display = "viewer", results.longdesc = FALSE, limit.results = 15, silent = FALSE, index = NULL, advanced.ranking = TRUE, return.df = FALSE, clipboard = FALSE )
keywords | A vector of keywords to be searched for. Instead of separate search terms, |
---|---|
query | A vector of regular expressions (regex) to match against package name and descriptions; alternative to |
mode | Indicates whether the search terms in |
case.sensitive | Indicates if the search shall be case sensitive, or not. |
always.sensitive | A vector of search terms for which capitalization is always considered relevant (even if |
weights | A numeric vector describing how search hits in different fields of the a package's data shall be weighted. The first three elements of the vector are the weights assigned to hits in the package's title, short description and long description, respectively. The fourth element is a factor applied to the overall score of a search hit if all search terms from the |
display | Describes where the search results shall be shown. Either |
results.longdesc | Indicates whether the packages' long descriptions shall also be included in the search results. Given the length of some long decsriptions this may make the search results harder to read. |
limit.results | The maximum number of matches presented in the search results; choose a negative number to display all results |
silent | Indicates whether any visible output is produced. Use |
index | Either a path (or URL) to a search index, or a search index that is already loaded. If no index is provided, |
advanced.ranking | Indicates if the ranking of search results shall be based on weights taking into account the inverse frequencies of the different search terms across all packages and the length of the matches relative to the texts they were found in. Usually, using advanced ranking ( |
return.df | If |
clipboard | If |
The search results as a dataframe, if df.return = TRUE
.
The GO
column in the search results is an index number that can be used to address the found package easily with the go()
function.
The Total Downloads
column in the search results gives the overall number of downloads of the respective package since its submission to CRAN. The number is based on the figures for the RStudio CRAN mirror server.
This field is only provided if the search index contains download figures. Ad hoc indices (when index = NULL
) never include download statistics. Please refer to buildIndex()
for more details.
fp()
is a shorter alias for findPackage()
.
Joachim Zuckarelli joachim@zuckarelli.de
#> Your are searching packages for the terms 'regression', 'meta' in or mode (at least one occurence of any of the search terms) #> #> Please wait while index is being searched... #> #> Results: 2150 out of 17409 CRAN packages found in 16 seconds. Top 15 results are shown. Use parameter 'limit.results' to increase number of results shown.#> Your are searching packages for the terms 'text', 'tables' in or mode (at least one occurence of any of the search terms) #> #> Please wait while index is being searched... #> #> Results: 1015 out of 17409 CRAN packages found in 16 seconds. Top 15 results are shown. Use parameter 'limit.results' to increase number of results shown.searchindex <- buildIndex() findPackage(keywords=c("regression", "linear"), mode="and", always.sensitive="GLM", index=searchindex)#> Your are searching packages for the terms 'regression', 'linear', 'GLM' in and mode (matches must have at least one occurence of each of the search terms). #> #> Please wait while index is being searched... #> #> Results: 51 out of 17409 CRAN packages found in 12 seconds. Top 15 results are shown. Use parameter 'limit.results' to increase number of results shown.findPackage("meta and regression", display="console")#> Your are searching packages for the terms 'meta', 'regression' in and mode (matches must have at least one occurence of each of the search terms). #> #> Please wait while index is being searched... #> #> Results: 37 out of 17409 CRAN packages found in 16 seconds. Top 15 results are shown. Use parameter 'limit.results' to increase number of results shown. #> #> #> +-------+------------+--------------------------------+-------+ #> | Score | Name | Short Description | GO | #> +=======+============+================================+=======+ #> | 100 | meta | General Package for | 8656 | #> | | | Meta-Analysis | | #> +-------+------------+--------------------------------+-------+ #> | 96.4 | bmeta | Bayesian Meta-Analysis and | 1360 | #> | | | Meta-Regression | | #> +-------+------------+--------------------------------+-------+ #> | 80.4 | mvmeta | Multivariate and Univariate | 9605 | #> | | | Meta-Analysis and | | #> | | | Meta-Regression | | #> +-------+------------+--------------------------------+-------+ #> | 76 | metaplus | Robust Meta-Analysis and | 8708 | #> | | | Meta-Regression | | #> +-------+------------+--------------------------------+-------+ #> | 73.6 | metaLik | Likelihood Inference in | 8693 | #> | | | Meta-Analysis and | | #> | | | Meta-Regression Models | | #> +-------+------------+--------------------------------+-------+ #> | 65.9 | metapack | Bayesian Meta-Analysis and | 8704 | #> | | | Network Meta-Analysis | | #> +-------+------------+--------------------------------+-------+ #> | 63.9 | metacart | Meta-CART: A Flexible Approach | 8668 | #> | | | to Identify Moderators in | | #> | | | Meta-Analysis | | #> +-------+------------+--------------------------------+-------+ #> | 62 | metafor | Meta-Analysis Package for R | 8681 | #> +-------+------------+--------------------------------+-------+ #> | 61.1 | metan | Multi Environment Trials | 8701 | #> | | | Analysis | | #> +-------+------------+--------------------------------+-------+ #> | 57.2 | dfmeta | Meta-Analysis of Phase I | 3312 | #> | | | Dose-Finding Early Clinical | | #> | | | Trials | | #> +-------+------------+--------------------------------+-------+ #> | 55.7 | robumeta | Robust Variance | 13218 | #> | | | Meta-Regression | | #> +-------+------------+--------------------------------+-------+ #> | 54.8 | metatest | Fit and Test Metaregression | 8722 | #> | | | Models | | #> +-------+------------+--------------------------------+-------+ #> | 54.2 | mixmeta | An Extended Mixed-Effects | 8988 | #> | | | Framework for Meta-Analysis | | #> +-------+------------+--------------------------------+-------+ #> | 49 | GENMETA | Implements Generalized | 5499 | #> | | | Meta-Analysis Using Iterated | | #> | | | Reweighted Least Squares | | #> | | | Algorithm | | #> +-------+------------+--------------------------------+-------+ #> | 46.9 | metaSDTreg | Regression Models for Meta | 8716 | #> | | | Signal Detection Theory | | #> +-------+------------+--------------------------------+-------+ #># Alternatively, show results in browser # findPackage("meta and regression", display="browser") my.results <- findPackage("meta AND regression")#> Your are searching packages for the terms 'meta', 'regression' in and mode (matches must have at least one occurence of each of the search terms). #> #> Please wait while index is being searched... #>#> Warning: URL 'https://CRAN.R-project.org/web/packages/packages.rds': Timeout of 60 seconds was reached#> Error in readRDS(con): cannot read from connection# }