jcrodriguez1989 / rco

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

Possible fix for issue #63 #151

Closed saxenism closed 4 years ago

saxenism commented 4 years ago

Hey @jcrodriguez1989 , I tried my hand at this problem #63. I've added a function that checks whether the given code has unassigned variables in any function and issues a warning if there exists an unassigned variable, The function also specifies the name of the specific function and the variable. Please have a look and let me know, what improvements can be made.

fin_input

fin_output

saxenism commented 4 years ago

Made some changes in the opt_dead_code.R file so that it may be a possible fix for issue #31 and also improved the earlier implementation.