catalogr | R Documentation |
Catalog a directory of files
catalogr( dir = getwd(), fileformat = list(.R = "#>", .sql = "-->"), write_yaml = TRUE, yaml_filepath = file.path(getwd(), "catalogr.yaml"), recursive = TRUE )
dir |
current working directory |
fileformat |
list with the keys as file type and a value with the comment token. These are the only files read by the package. By default R and SQL files are supported. |
write_yaml |
boolen value, if FALSE then the function returns a list object |
yaml_filepath |
if 'write_yaml' is TRUE, this specifies the filepath and filename to store the file in. |
recursive |
recursively follow all directories starting from the current directory |
# Catalog all .R files in the current working directory catalogr() # Catalog R and SQL files. # Catalogs the metadata available catalogr(fileformat = list(".R" = "#>", ".sql" = "-->"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.