-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unrecognized escaped in keyby #3319
Comments
Instead of dealing with that particular I would prefer to provide a helper function for cleaning up column names, and ask people to use that in such cases. |
We could add |
The "\" character is always treated as an escape key (using the following character) in strings (even when writing markdown comments here!). So if you want an actual backslash, you need to escape each backslash:
|
@sritchie73 That's not quite true. DT <- data.table(x = 1)
setnames(DT, "\n")
DT[, .(a = 1), keyby = "\n"]
# \n a
# 1: 1 1 |
Of course, I can change to
keyby = `\\phantom{.}`
, but that can be hard to know in advance.Created on 2019-01-27 by the reprex package (v0.2.1)
Session info
The text was updated successfully, but these errors were encountered: