getFunctionUse {PaRe} | R Documentation |
summariseFunctionUse
Description
Summarise functions used in R package.
Usage
getFunctionUse(repo, verbose = FALSE)
Arguments
repo |
(Repository) |
verbose |
(logical: FALSE) |
Value
(tibble)
column | data type |
file | character |
line | numeric |
pkg | character |
fun | character |
Examples
fetchedRepo <- tryCatch(
{
# Set dir to clone repository to.
tempDir <- tempdir()
pathToRepo <- file.path(tempDir, "glue")
# Clone repo
git2r::clone(
url = "https://github.com/tidyverse/glue.git",
local_path = pathToRepo
)
# Create instance of Repository object.
repo <- PaRe::Repository$new(path = pathToRepo)
# Set fetchedRepo to TRUE if all goes well.
TRUE
},
error = function(e) {
# Set fetchedRepo to FALSE if an error is encountered.
FALSE
},
warning = function(w) {
# Set fetchedRepo to FALSE if a warning is encountered.
FALSE
}
)
if (fetchedRepo) {
# Run getFunctionUse on the Repository object.
getFunctionUse(repo = repo, verbose = TRUE)
}
[Package PaRe version 0.1.13 Index]