feat(roxygen): Add roxygen tag for typed parameters/returns

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
documentation

Research direction

Start by inspecting the repository for its roxygen parsing or documentation-generation entry points and existing tests for parameter tags. Compare the proposed @paramt syntax with the example output, then define and test behavior that consistently renders the parameter type separately from its description.

Written by the indexing model from the issue text.

Description

I often find myself re-writting the same statements for typed parameters:

#' @param x A `character` vector [blah blah blah]

Shoving type information into plain text is a bit messy and would benefit from having a more consistent shorthand. At least for now, just having something that might parse and produce something better formatted would be nice:

#' @paramt x [`character`] blah blah blah

That produces

\arguments{
  \item{x \code{character}}{
    blah blah blah
  }
}

Would help to give the type information a more dedicated space in the documentation and consistently format it.

Dominant language
R
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.