Skip to content

write_sav failed when colname is chinese #689

Closed
@jk1420

Description

info <- data.frame("流水号" = 1:2,  "性别"= factor(c('','')),  "年龄"= c(25,34)); info
#  流水号 性别 年龄
#1      1   男   25
#2      2   女   34

tmp <- tempfile(fileext=".sav")
write_sav(info, tmp)
#! Variables in `data` must have valid SPSS variable names.
#✖ Problems: `流水号`, `性别`, and `年龄`
#Run `�]8;;rstudio:run:rlang::last_error()rlang::last_error()�]8;;` to see where the error occurred.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions