DesiQuintans / tsv2label

tsv2label: Label, describe, rename, and recode datasets using a data dictionary
Other
2 stars 0 forks source link

Cannot parse non-syntactic names #2

Closed DesiQuintans closed 1 year ago

DesiQuintans commented 1 year ago

Looks like I need to as.name() the columns in the code I write, just for safety.

Error in parse(text = code_chr) : <text>:1:13: unexpected symbol
1: all$Firearm Action
^
4.
parse(text = code_chr) at zzz_global_eval.R#20
3.
eval(parse(text = code_chr), envir = .GlobalEnv) at zzz_global_eval.R#20
2.
global_eval(sprintf("%1$s$%2$s <- as.character(%1$s$%2$s)", df_char,
cols)) at aaa_factorise_with_dictionary.R#73
1.
factorise_with_dictionary(all, "ObjectData_dictionary")