checkImports | R Documentation |
For each file in package/R, check whether all used functions are imported. There may be false positives: function names in comments or within character strings are included as well. (Comment-only lines are ignored).
checkImports(path = ".", filename = "checkImports.R")
path |
Package path, Character string. DEFAULT: "." (current getwd) |
filename |
Output file name. Text will be added, previous content remains. DEFAULT: "checkImports.R" |
Berry Boessenkool, berry-b@gmx.de, Aug 2017
## Not run: # exclude from checks
library(berryFunctions)
setwd(paste0(pathFinder(), "/berryFunctions"))
imps <- checkImports()
openFile("checkImports.R")
for(n in names(imps)[!sapply(imps, is.null)]) openFile(n) ; rm(n)
unlink("checkImports.R")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.