rcst / rim

rim provides an interface to Maxima for R. Maxima is a powerful and fairly complete computer algebra system.
10 stars 3 forks source link

Maxima warning depending on installed Maxima version cause test suite to fail #20

Closed rcst closed 3 years ago

rcst commented 3 years ago

On Fedora 34 I have Maxima 5.43. on which when I

load("abs_integrate");

produces a message "WARNING: Redefining Macro in ....", which due to lack of consistent WARNING and ERROR message syntax is forwarded as an error into R which stops the knitr-engine test, that uses test file "inst/extdata/test.Rmd" in which code chunk nr. 10 uses the above statement.

Solution that comes to my mind first: If a message contains the word WARNING or exactly this warning message type, then we should issue a warning instead of an error.

rcst commented 3 years ago

This was a bug, that was caused by not properly treating "output" from suppressed commands and warnings.