Skip to contents

This function queries any online repository for a list of available packages. They are returned as a vector of strings, each element being a package name. The data is retrieved from /src/contrib/PACKAGES or /src/contrib/PACKAGES.gz file.

Usage

wood_url_packages(repository)

Arguments

repository

character(1)
URL to repository, e.g. "http://www.omegahat.net/R".

Value

A character vector of available packages.

Examples

# \donttest{
wood_url_packages("http://www.omegahat.net/R")
#>  [1] "Aspell"              "CGIwithR"            "CodeAnalysis"       
#>  [4] "CodeDepends"         "Combinations"        "FastCSVSample"      
#>  [7] "GeoIP"               "R2GoogleMaps"        "RAmazonDBREST"      
#> [10] "RAmazonS3"           "RAutoGenRunTime"     "RCIndex"            
#> [13] "Rcompression"        "RCSS"                "RCUDA"              
#> [16] "RCurl"               "RD3Device"           "RDCOMClient"        
#> [19] "REuPathDB"           "RExcelXML"           "Rffi"               
#> [22] "Rflickr"             "RGCCTranslationUnit" "RGCCTUFFI"          
#> [25] "RGoogleDocs"         "RGoogleStorage"      "RGoogleTrends"      
#> [28] "RGraphicsDevice"     "RHTMLForms"          "RJSONIO"            
#> [31] "RKML"                "RKMLDevice"          "Rlibstemmer"        
#> [34] "Rnvvm"               "RNYTimes"            "ROOXML"             
#> [37] "ROpenOffice"         "RSPARQL"             "RSQLiteUDF"         
#> [40] "RSQLiteVirtualTable" "Rstem"               "RTidyHTML"          
#> [43] "RUbigraph"           "RWordPress"          "RWordXML"           
#> [46] "SpiderMonkey"        "SSOAP"               "SVGAnnotation"      
#> [49] "SWinTypeLibs"        "Sxslt"               "WADL"               
#> [52] "XML"                 "XMLRPC"              "XMLSchema"          
#> [55] "Zillow"             
# Trailing slashes are removed
wood_url_packages("http://www.omegahat.net/R/")
#>  [1] "Aspell"              "CGIwithR"            "CodeAnalysis"       
#>  [4] "CodeDepends"         "Combinations"        "FastCSVSample"      
#>  [7] "GeoIP"               "R2GoogleMaps"        "RAmazonDBREST"      
#> [10] "RAmazonS3"           "RAutoGenRunTime"     "RCIndex"            
#> [13] "Rcompression"        "RCSS"                "RCUDA"              
#> [16] "RCurl"               "RD3Device"           "RDCOMClient"        
#> [19] "REuPathDB"           "RExcelXML"           "Rffi"               
#> [22] "Rflickr"             "RGCCTranslationUnit" "RGCCTUFFI"          
#> [25] "RGoogleDocs"         "RGoogleStorage"      "RGoogleTrends"      
#> [28] "RGraphicsDevice"     "RHTMLForms"          "RJSONIO"            
#> [31] "RKML"                "RKMLDevice"          "Rlibstemmer"        
#> [34] "Rnvvm"               "RNYTimes"            "ROOXML"             
#> [37] "ROpenOffice"         "RSPARQL"             "RSQLiteUDF"         
#> [40] "RSQLiteVirtualTable" "Rstem"               "RTidyHTML"          
#> [43] "RUbigraph"           "RWordPress"          "RWordXML"           
#> [46] "SpiderMonkey"        "SSOAP"               "SVGAnnotation"      
#> [49] "SWinTypeLibs"        "Sxslt"               "WADL"               
#> [52] "XML"                 "XMLRPC"              "XMLSchema"          
#> [55] "Zillow"             
# }