Skip to content

FR: write_over() improvements #767

@krlmlr

Description

@krlmlr
  1. Preserve line ending. Otherwise we are too much dependent on the "eol" Git config settings. I have an implementation for transforming a file preserving line endings in {enc}, but I'm retiring it: https://github.com/krlmlr/enc/blob/master/R/io.R#L110.

  2. Consider adding an ask argument that defaults to interactive(), so that other tools can call this function to unconditionally overwrite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementtooling 🔨Internal usethis tooling

    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