Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Searching CRAN with packagefinder: : CHEAT SHEET

CONSOLE RSTUDIO ADD-IN


findPackage(keywords, mode = "or", case.sensitive = FALSE, always.sensitive = NULL, Automatically installed with the
weights = c(2,2,1,2), display = "viewer", results.longdesc = FALSE, limit.results = 15, silent = package.
FALSE, index = NULL, advanced.ranking = TRUE, return.df = FALSE, clipboard = FALSE)
Provides a graphical interface to the
Most important arguments findPackage() and whatsNew()
functions
keywords Word or vector of words to case.sensitive Case-sensitive search? Modify options,
search for preserved for R session
Install selected
mode Find packages with every always.sensitive Vector of words that will
packages
keyword ("and") or with any always be treated as case- Mark and
of the keywords ("or")? sensitive, e.g. abbreviations Options as in findPackage()
review later
Will be overruled if keywords How many results to display Click for PDF manual,
contain logical operators like limit.results CRAN page, GitHub repo
in console or viewer?
keywords = "X and Y" Open details

Outputs display Already installed?


If not, install
display = "console" display = "viewer" display = "browser"

ADDITIONAL FUNCTIONS

whatsNew(last.days = 0) Show new packages on CRAN

return.df = TRUE Return results as dataframe clipboard = TRUE Copy results to clipboard packageDetails(package) Show details of a CRAN package in
the console

Examples > findPackage("parameters", mode = "and", always.sensitive = "SEM") lastResults(package = "viewer") Show results of last search again
> findPackage("meta and regression") fp(…) Short hand for findPackage(…)
> my.resuslts <- findPackage(c("meta", "regression"), "and", return.df = TRUE)
go(package, where.to = "details") Install CRAN package, show PDF
> findPackage("xml", display = "browser")
manual, details or package website

Joachim Zuckarelli 2020 Licensed under the Create Commons 4.0 License joachim@zuckarelli.de jsugarelli github.com/jsugarelli/packagefinder Topics in R

You might also like