Open brennanpincardiff opened 4 years ago
+1 to that. The code would definately benefit from some refactoring.
Minor remarks:
make_badge_code()
-> make_badge_template()
~preview_badge()
what would be the preview? Is there an easy way to show a popup with pdf in R?~
EDIT: forget the last one, just saw #13 ;)
One test added :-)
Clearly we need some tests but I wonder if it requires some refactoring.
I wonder if it is possible/worthwhile to separate the creation of the temp_badge_code item from the creation of the Latex and perhaps from the generation of the PDF?
This might facilitate some previewing and facilitate some testing.
Maybe into the following functions:
Thoughts @dokato, @DaveParr? P