Forum: support
Monitor Forum | Start New ThreadRE: solution and \exsolution redundancy [ Reply ] By: michael schulte on 2018-10-19 05:53 | [forum:46354] |
thanks achim - I will try that! |
RE: solution and \exsolution redundancy [ Reply ] By: Achim Zeileis on 2018-10-18 16:13 | [forum:46353] |
Michael, yes, this is indeed a potential source of errors. However, I don't see a good way to avoid this. Within the R code of the Rnw/Rmd exercises you have the full flexibility of R...and hence requiring a particular name for the solution object would also be potentially confusing. Hence, when there is indeed a "solutions" object that is generated in the R code chunks, then I would use \exsolution{\Sexpr{mchoice2string(solutions)}} Then you just have to write this \exsolution once and can modify the "solutions" object as desired. |
solution and \exsolution redundancy [ Reply ] By: michael schulte on 2018-10-18 13:52 | [forum:46352] |
Armin, I was wondering whether it is necessary to define solutions twice (I believe it is with the current version of the package but I am not sure). 1) in solutions[x] <- TRUE and 2) in %%\exsolution{1} it might be just me - but this is a constant source of error ... Thanks! Michael |