Skip to content

Introduce class vertical #173

Closed
Closed

Description

@lorenzwalthert

To avoid

style_text(...) %>%
  cat(sep = "\n")

And simply write

style_text(...)

Activity

  1. lorenzwalthert commented on Aug 31, 2017

    @lorenzwalthert
    CollaboratorAuthor

    There is one obstacle: The tests won't pass anymore since the output of style_text is not the same as the reference with regard to the attributes. However, when written to the file, the text is identical. test_collection() uses utf8::transform_lines_enc(), which test whether the input and the transformed output is identical via identical(), which seems a bit too strict for our case. It seems to me that all.equal(..., check.attributes = FALSE) would be more accurate in our situation. Should we adapt test_collection to not rely on utf8::transform_lines_enc() for the comparison?

  2. lorenzwalthert commented on Sep 2, 2017

    @lorenzwalthert
    CollaboratorAuthor

    @krlmlr can you advise on that?

  3. krlmlr commented on Sep 2, 2017

    @krlmlr
    Member

    Can you insert an unclass() somewhere before checking equality or before calling transform_...()?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions