This function takes a file path as input and searches the CRAN repository for R packages that can import the file format.
find.packages_path(file_path)
A character string specifying the file path of the file to be imported.
A character string that lists the R packages that can be used to import the file format of the input file.
# Search for packages that can import a CSV file
find.packages_path("sample.csv")
#> [1] "The following R packages can be used to import the file format csv : csv, csvread, csvwr, csvy, easycsv"
# Search for packages that can import a JSON file
find.packages_path("sample.json")
#> [1] "The following R packages can be used to import the file format json : geojson, geojsonio, geojsonlint, geojsonR, geojsonsf, json2aRgs, json64, jsonify, jsonld, jsonlite, jsonstat, jsonStrings, jsonvalidate, mojson, ndjson, rapidjsonr, rjson, rjsoncons, tidyjson"