This function queries the selected repositories for the available packages and collects the unique occurrences.
Arguments
- repos
character()
A vector of repositories to query. The following values are available:"cran"
, meaning CRAN;"bioc@release"
, meaning Bioconductor, whererelease
should be replaced with a valid Bioconductor release code or one of"release"
,"devel"
;"github/user"
, meaning GitHub, whereuser
should be replaced with a valid user or organization name (e.g.turtletopia
);"runiverse@universe"
, meaning R-universe, whereuniverse
should be replaced with a valid universe name (e.g.turtletopia
);"local#index"
, meaning a local library, whereindex
should be replaced with an integer index of a library inbase::.libPaths()
or anall
keyword;"core"
, meaning base R packages;a URL if none of the above is matched.
See also
Functions for all repositories:
wood_dependencies()
,
wood_versions()
Functions that query available packages:
wood_bioc_packages()
,
wood_core_packages()
,
wood_cran_packages()
,
wood_github_packages()
,
wood_local_packages()
,
wood_runiverse_packages()
,
wood_url_packages()
Examples
# \donttest{
# head() used due to the number of packages in there
head(wood_packages(c("local#all", "bioc@1.7", "cran", "core")))
#> [1] "A3" "AATtools" "ABACUS" "ABC.RAP" "ABCanalysis"
#> [6] "ABCoptim"
wood_packages(c("http://www.omegahat.net/R", "runiverse@turtletopia"))
#> [1] "Aspell" "CGIwithR" "CodeAnalysis"
#> [4] "CodeDepends" "Combinations" "FastCSVSample"
#> [7] "GeoIP" "R2GoogleMaps" "RAmazonDBREST"
#> [10] "RAmazonS3" "RAutoGenRunTime" "RCIndex"
#> [13] "RCSS" "RCUDA" "RCurl"
#> [16] "RD3Device" "RDCOMClient" "REuPathDB"
#> [19] "RExcelXML" "RGCCTUFFI" "RGCCTranslationUnit"
#> [22] "RGoogleDocs" "RGoogleStorage" "RGoogleTrends"
#> [25] "RGraphicsDevice" "RHTMLForms" "RJSONIO"
#> [28] "RKML" "RKMLDevice" "RNYTimes"
#> [31] "ROOXML" "ROpenOffice" "RSPARQL"
#> [34] "RSQLiteUDF" "RSQLiteVirtualTable" "RTidyHTML"
#> [37] "RUbigraph" "RWordPress" "RWordXML"
#> [40] "Rcompression" "Rffi" "Rflickr"
#> [43] "Rlibstemmer" "Rnvvm" "Rstem"
#> [46] "SSOAP" "SVGAnnotation" "SWinTypeLibs"
#> [49] "SpiderMonkey" "Sxslt" "WADL"
#> [52] "XML" "XMLRPC" "XMLSchema"
#> [55] "Zillow" "aurrera" "deepdep"
#> [58] "gglgbtq" "ggpizza" "openaccess"
#> [61] "versionsort" "woodendesc"
# By default, only CRAN is queried:
head(wood_packages())
#> [1] "A3" "AATtools" "ABACUS" "ABC.RAP" "ABCanalysis"
#> [6] "ABCoptim"
# }