Skip to content

More informative error message for illegal characters in names in write_dta #463

@steffen-stell

Description

@steffen-stell

I tried to export a dataset into dta, but received the error message below. I have no experience in Stata and so it took me a bit to find out that in Stata variable names must not contain ".". It would have been much more helpful if the error message actually told you what the illegal character is that you need to replace.

Error in write_dta_(data, normalizePath(path, mustWork = FALSE), version = stata_file_format(version)) : Writing failure: A provided name contains an illegal character.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementreadstat

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions