diff --git a/NEWS.md b/NEWS.md index 1faf8019..c049f70b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,8 @@ # TidierData.jl updates +## v0.13.4 - 2023-11-28 +- Macros used inside of verbs like `@mutate()` are now escaped, making it possible to work with Unitful units (e.g. `u"psi"`) + ## v0.13.3 - 2023-11-23 - `@slice()` now correctly handles `n()` in grouped data frames diff --git a/Project.toml b/Project.toml index b27fcd2b..c2f10ad1 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "TidierData" uuid = "fe2206b3-d496-4ee9-a338-6a095c4ece80" authors = ["Karandeep Singh"] -version = "0.13.3" +version = "0.13.4" [deps] Chain = "8be319e6-bccf-4806-a6f7-6fae938471bc" diff --git a/src/parsing.jl b/src/parsing.jl index ae250efc..fb9b81e2 100644 --- a/src/parsing.jl +++ b/src/parsing.jl @@ -349,6 +349,8 @@ function parse_escape_function(rhs_expr::Union{Expr,Symbol}) else return x end + elseif @capture(x, @mac_(args__)) + return esc(Expr(:macrocall, mac, LineNumberNode, args...)) end return x end