Skip to content

periods between names in @family attribute #477

@kevinushey

Description

@kevinushey

When a package contains only one unique @family tag, e.g.

@family scope-related functions

roxygen2 mutates the name to

scope.related.functions

This seems to be caused by the definition of invert. A small reproducible example:

data <- structure(list(defer.Rd = "scope-related functions", scope_dir.Rd = "scope-related functions", 
    scope_env_vars.Rd = "scope-related functions", scope_options.Rd = "scope-related functions"), .Names = c("defer.Rd", 
"scope_dir.Rd", "scope_env_vars.Rd", "scope_options.Rd"))
roxygen2:::invert(data)

This could be fixed by avoiding the use of stack(), unstack() in invert: https://github.com/klutometis/roxygen/blob/master/R/family.R#L29-L32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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