Skip to content

Export of non-exported functions to enable other style guides to pass CRAN checks #974

@Robinlovelace

Description

@Robinlovelace

Please consider exporting the following functions:

  • is_function_call()
  • previous_non_comment()
  • scope_normalize()

Context: I'm working on {styler.equals} based on @lorenzwalthert's very handy template: https://github.com/lorenzwalthert/styler.yours

As mentioned in #860 tests do not pass due to these lines:

if (styler:::is_function_call(pd)) {

https://github.com/lorenzwalthert/styler.yours/blob/07b6689532aab92b1c60f106f9daf0cbb1fed6e3/R/rules-line-break.R#L14

https://github.com/lorenzwalthert/styler.yours/blob/ea4eb50e79886c5bf58dec51dff76aafbcdd4249/R/core.R#L21

@MichaelChirico advocated in #340 (comment) to export those functions to make it easier to for people building alternative styles building on this great package to release them to the masses.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions