## ----include = FALSE---------------------------------------------------------- knitr::opts_chunk$set ( collapse = TRUE, comment = "#>" ) ## ----library------------------------------------------------------------------ library (pkgmatch) ## ----match-text-1-fakey, eval = FALSE----------------------------------------- # input <- "genomics and transcriptomics sequence location data" # pkgmatch_similar_pkgs (input, corpus = "ropensci") ## ----redef-sim-pkgs1, eval = TRUE, echo = FALSE------------------------------- c ("biomartr", "traits", "phylotaR", "phruta", "rebird") ## ----match-text-1-fakey-return, eval = FALSE---------------------------------- # p <- pkgmatch_similar_pkgs (input, corpus = "ropensci") # head (p) ## ----match-text-1-return, eval = TRUE, echo = FALSE--------------------------- data.frame ( package = c ("biomartr", "traits", "phylotaR", "phruta", "rebird"), rank = 1:5 ) ## ----match-text-2-cran-fakey, eval = FALSE------------------------------------ # pkgmatch_similar_pkgs (input, corpus = "cran") ## ----redef-sim-pkgs2, eval = TRUE, echo = FALSE------------------------------- c ("omicsTools", "ggalign", "omixVizR", "singleCellHaystack", "spatialGE") ## ----odbc-cran-match-fakey, eval = FALSE-------------------------------------- # u <- "https://cran.r-project.org/src/contrib/Archive/odbc/odbc_1.5.0.tar.gz" # destfile <- file.path (tempdir (), basename (u)) # download.file (u, destfile = destfile, quiet = TRUE) # pkgmatch_similar_pkgs (destfile, corpus = "cran") ## ----odbc-cran-match, echo = FALSE, eval = TRUE------------------------------- c ("odbc", "RODBC", "DatabaseConnector", "dbplyr", "reticulate") ## ----odbc-match-head-fakey, eval = FALSE-------------------------------------- # p <- pkgmatch_similar_pkgs (destfile, corpus = "cran") # head (p) ## ----odbc-cran-match-head, echo = FALSE, eval = TRUE-------------------------- data.frame ( package = c ("odbc", "RODBC", "DatabaseConnector", "dbplyr", "reticulate"), version = c ("1.6.4.1", "1.3-26.1", "7.1.0", "2.5.2", "1.45.0"), rank = 1:5 )