roxygen2 (version 2.2.2)

namespace_roclet: Roclet: make NAMESPACE.

Description

This roclet automates the production of a NAMESPACE file, see Writing R Extensions (http://cran.r-project.org/doc/manuals/R-exts.pdf) for details.

Usage

namespace_roclet()

Arguments

See Also

Other roclets: collate_roclet, rd_roclet

Examples

Run this code
#' An example file, example.R, which imports
#' packages foo and bar
#' @import foo bar
NULL

#' An exportable function
#' @export
fun <- function() {}

roclet <- namespace_roclet()
roc_proc(roclet, "example.R")
roc_out(roclet, "example.R", ".")

Run the code above in your browser using DataLab