r-cas / caracas

Computer algebra in R
GNU General Public License v2.0
24 stars 2 forks source link

Symbolic in R: "expression" --> provide `as.expression()` and possibly `as.function()` methods for caracas objects #75

Closed mmaechler closed 10 months ago

mmaechler commented 10 months ago

(see title). You have your own generic as_expr() where really knowing R well, as user I'd "expect" as.expression(<caracas_symbol>) to work. Further, base R has always had as.function(); though it has not been used extensively, but e.g. in package polynom.

mikldk commented 10 months ago

Thanks for reporting this, @mmaechler . Both a good suggestions, and I am embarrassed that we do not have them. Will implement them right away.

mikldk commented 10 months ago

@mmaechler The newest commit solves this. Thanks for reporting. I will close this now. Please feel free to re-open if you experience any problems (or open new issues with other suggestions/questions).

mikldk commented 10 months ago

@mmaechler FYI: Today the newest version, 2.1.1, was uploaded to CRAN and it contains this patch.