Skip to content

write_xpt does not allow file names with - or leading numbers #772

@RagavRajan

Description

@RagavRajan
df <- data.frame(A = c(1, 2, 3), B = c('a', 'b', 'c'))
  A B
1 1 a
2 2 b
3 3 c

write_xpt(df, "simple-df.xpt")
Error: Failed to create file: A provided name contains an illegal character.

write_xpt(df, "001_simple.xpt")
Error: Failed to create file: A provided name begins with an illegal character.

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