ucd-ipo / agroft

Agricultural Field Trial Statistics Package
http://ucd-ipo.github.io/agroft/
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

Display the LSD.test() code to the user in the app on the post hoc tab #84

Closed moorepants closed 8 years ago

moorepants commented 9 years ago

This is a bit more complicated because there are so many code paths depending on what the experiment design is and what variables are significant. It may be best to generate the text for the code and then use eval() to evaluate it for the in app results and then just print it for both the display and the report, see #72. Something like:

GeneratePostHocCode <- function () {...} # returns a char
RunCode <- function() {eval(GeneratePostHocCode, environ=correct_env)}  # returns list of results

This would be more similar to what Ian originally had.