Skip to content

Consider removing dplyr and possibly purrr dependencies? #181

Closed

Description

@jimhester

dplyr is a very heavy dependency which makes using styler on CI services such as travis or appveyor problematic.

Doing this would be useful so you could style the package as a CI step and ensure there are no changes as a way to verify that PRs conform to the style. But this will only work well if styler has limited (and light) dependencies.

If you are open to the possibility of removing the dependency I could work on a PR.

Activity

  1. krlmlr commented on Sep 5, 2017

    @krlmlr
    Member

    I think removing dplyr and using compat-purrr.R is a good plan. Happy to review a PR.

  2. lorenzwalthert commented on Sep 5, 2017

    @lorenzwalthert
    Collaborator

    I think since I know the project fairly well by now, I can start working on this in about two weeks if @jimhester is ok with that. If I remember correctly, the majority of dplyr calls was already removed with #90, so it should not be too much of work.

  3. jimhester commented on Sep 5, 2017

    @jimhester
    MemberAuthor

    I have a WIP at https://github.com/krlmlr/styler/pull/182.

    I also realized that tidyr also has a dplyr dependency, so we would need to remove tidyr as well.

  4. lorenzwalthert commented on Sep 5, 2017

    @lorenzwalthert
    Collaborator

    Yes, that might be tricky. Especially for creating the nested parse data - as the name says - we heavily rely on tidyr::nest().

  5. jimhester commented on Sep 6, 2017

    @jimhester
    MemberAuthor

    dplyr (#182) is complete now as well. Purrr is fairly light these days, we can remove it if we want, but probably not really needed.

  6. krlmlr commented on Sep 15, 2017

    @krlmlr
    Member

    Should be good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions