View source: R/file_find_by_type.R
file_find_by_type | R Documentation |
Find By File Type in Directory
file_find_by_type( directory, type = "shp", first_only = FALSE, full_path = FALSE )
type |
Type of file file extension without a period, e.g. "zip", "shp". |
first_only |
Only return first found. default FALSE. |
full_path |
Return file name with full path. defualt FASLE. |
file_find_by_type(tmpdir, "shp", first_only = TRUE) [1] "some_shape_file.shp"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.