Two internal functions include: git_contents() and git_layer_names(). These functions are used to access the Github API, parse folders and files in the Natural Earth Github repo, and return lists used by find_vector_data()
git_contents() requires httr and jsonlite which are now included under Import in the DESCRIPTION file. pbapply is suggested, and displays a progress bar used in git_layer_names()
This pull request includes one user facing function and two internal functions that address #24
find_vector_data()
returns a dataframe with a list of layer names and metadata links. arguments include scale and category. Example:Two internal functions include:
git_contents()
andgit_layer_names()
. These functions are used to access the Github API, parse folders and files in the Natural Earth Github repo, and return lists used byfind_vector_data()
git_contents()
requireshttr
andjsonlite
which are now included under Import in the DESCRIPTION file.pbapply
is suggested, and displays a progress bar used ingit_layer_names()