You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
set_tidy_names fails when wanting syntactic names #260
library(tibble)
packageVersion("tibble")
#> [1] '1.3.1'tbl<- tibble(`a name`=1, b=2)
set_tidy_names(tbl, syntactic=TRUE)
#> Error: length(orig_name) == length(name) is not TRUE
Analysis: make_syntactic() is not returning the parsed set of field names. Input name is [1] "a name" "b" while last line of this function is assignment of parsed field names rather than full set of field names and hence returns only subset of field names that have been tidied:
function (name, syntactic)
{
if (!syntactic)
return(name)
blank <- name == ""
fix_syntactic <- (name != "") & !is_syntactic(name)
name[fix_syntactic] <- make.names(name[fix_syntactic])
}
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Activity
[-]tidy_names fails when wanting syntactic names[/-][+]set_tidy_names fails when wanting syntactic names[/+]make_syntactic returns right value
Merge pull request #261 from imanuelcostigan/fix-set-tidy-names
Merge tag 'v1.3.2'
Merge tag 'v1.3.2'
Merge tag 'v1.3.3'
github-actions commentedon Dec 13, 2020
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.