View source: R/writeNamespaceImports.R
writeNamespaceImports | R Documentation |
Writes imports statements that can be included in a package's NAMESPACE file.
writeNamespaceImports(package, file = "", append = TRUE, quote = FALSE,
width = 0.9 * getOption("width"))
package |
the quoted name of the package to analyze. |
file |
either a character string naming a file or an open writing
connection. |
append |
logical. If |
quote |
logical. If |
width |
a positive integer giving the target column for wrapping lines in the output. |
The result is an approximation based upon the findings of
findExternalDeps
. S4 class dependencies are embedded into
importClassesFrom statements, S4 methods dependencies are embedded into
importMethodsFrom statements, and all other dependencies are embedded into
importFrom statements.
See the document "Writing R Extensions" that is hosted on CRAN for more details on the proper construction of a NAMESPACE file.
Patrick Aboyoun
findExternalDeps
library(stats4)
writeNamespaceImports("stats4")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.