With Macaulay2 1.23, the m2r test suite fails with the following:
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-ideal.R:145:3'): ideal_(list("x+y x^2+y^2"), raw_chars = TRUE) errors ──
`ideal_(list("x+y x^2+y^2"), raw_chars = TRUE)` did not throw an error.
── Failure ('test-ideal.R:322:3'): ideal_.(list("x+y x^2+y^2"), raw_chars = TRUE) errors ──
`ideal_.(list("x+y x^2+y^2"), raw_chars = TRUE)` did not throw an error.
This is because x + y x^2+y^2 is now valid Macaulay2 code. In particular, it interprets the middle term y x^2 like sub(y, {x => x^2, y => y}), which evaluates to y, and so the entire expression evaluates to y^2 + x + y.
With Macaulay2 1.23, the m2r test suite fails with the following:
This is because
x + y x^2+y^2is now valid Macaulay2 code. In particular, it interprets the middle termy x^2likesub(y, {x => x^2, y => y}), which evaluates toy, and so the entire expression evaluates toy^2 + x + y.