Description Usage Arguments Details Value Examples
Find closest matching package
1 2 3 4 | FindClosestPackage(pkg, maxdist = 2, auto.select = TRUE,
username.pref = c("cran", "ropensci", "rstudio", "tidyverse", "hadley",
"yihui", "RcppCore", "eddelbuettel", "ropenscilabs", "hrbrmstr", "thej022214",
"bomeara"))
|
pkg |
A single package |
maxdist |
The maximum distance that counts as a match |
auto.select |
If TRUE, make a best guess in case of multiple equally good |
username.pref |
In case of matches, user names in order of preference. |
Inspired by githubinstall::gh_suggest() but allows being pickier about match. The username.pref is based on my guesses on priority: "cran" is a mirror for packages that have been on CRAN at some point, but could have been taken off; "ropensci" and "rstudio" produce really useful packages, etc.
pkgs that match the constraints
1 2 3 4 | ## Not run:
yearn(TreEvo) # A package on github, not CRAN (yet)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.