jcrodriguez1989 / rco

Package: The R Code Optimizer
https://jcrodriguez1989.github.io/rco/
84 stars 20 forks source link

Possible fix for Issue#107 #170

Closed saxenism closed 3 years ago

saxenism commented 4 years ago

With respect to the bug mentioned here, I have made some changes in the code of the dead expression optimizer in the R/opt-dead-expr.R file. I have added the functionality to handle exprlist introduced due to the usage of ';'.

I have added some additional tests in tests/testthat/test-opt_dead_expr.R that handle cases of usage of ';'. I hope, this could provide a fix to issue # 107.

Thanks!