Skip to content

Functions with @noRd (and even dot-prefixed names) are still exported #18

Description

@TroyHernandez

document() appears to emit an export() line for ANY function that carries a roxygen block - @noRd suppresses the .Rd file as expected, but not the NAMESPACE export, and a leading-dot name doesn't prevent it either.

Repro:

#' Internal helper
#' @param x thing
#' @noRd
.my_helper <- function(x) x

After tinyrox::document(), NAMESPACE contains export(.my_helper). Expected: no export (roxygen2 semantics - export only on explicit @export).

Impact: internal helpers silently become public API surface, which matters right before a CRAN submission (found in chatterbox: a private chunking helper got exported; current workaround is demoting internal docs to plain # comments, which loses the structured documentation).

Related: #17 (useDynLib). Both are 'document() rewrites NAMESPACE more aggressively than the tags imply' class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions