Description Usage Arguments Details Value Examples
View source: R/github_recursive.R
git.recursive
1 | git.recursive(x, filter_pat = NULL)
|
x |
The combo of username/repo or full folder path to a github repository. |
filter_pat |
A pattern to filter the returned data frame for subsetting |
This function takes a either a combination of a username/repo, or a full path to a rop folder and recurively retreives the file information.
A data frame with 7 observations on the following 5 variables.
characterThe basename of the file.
characterFull path to the file.
characterFile extension or file-type.
character The directory path-folder that contains the file.
characterA full path to the raw github file, which can be downloaded as if it were a cdn.
1 2 3 4 5 6 | had_xml2 <- git.recursive('hadley/xml2')
dim(had_xml2)
# get the first R file from the Ropensci Magick repo
git.recursive('ropensci/magick', filter_pat = "\\.R$") %>%
slice(1) %>% .$raw
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.