{"id":25933,"date":"2017-11-01T09:08:12","date_gmt":"2017-11-01T15:08:12","guid":{"rendered":"http:\/\/rankexploits.com\/musings\/?p=25933"},"modified":"2017-11-01T09:08:12","modified_gmt":"2017-11-01T15:08:12","slug":"r-advice-tutoring-related","status":"publish","type":"post","link":"https:\/\/rankexploits.com\/musings\/2017\/r-advice-tutoring-related\/","title":{"rendered":"R advice: Tutoring related."},"content":{"rendered":"<p><strong>Preface:<\/strong> A subset of my students like extra practice problems. Those taking AP tests especially would like some that have a &#8220;similar flavor&#8221; to the ones that <I>actually appear<\/i> on the AP Physics tests. (Make no mistake: certain &#8220;types&#8221; do appear on tests because none tests &#8220;all possible physics knowledge and skillzzzz&#8221; but rather emphasize certain predictable things.<\/p>\n<p><a href=\"http:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2017\/11\/Radvise.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2017\/11\/Radvise-271x300.png\" alt=\"\" width=\"271\" height=\"300\" class=\"alignright size-thumbnail wp-image-25934\" srcset=\"https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2017\/11\/Radvise-271x300.png 271w, https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2017\/11\/Radvise-452x500.png 452w, https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2017\/11\/Radvise.png 500w\" sizes=\"auto, (max-width: 271px) 100vw, 271px\" \/><\/a>So, I like to make problems that are &#8220;like&#8221; AP problems and store them in a Moodle database. (Moodle is a Learning Management System).  For certain problems, I&#8217;ve found using R really helps me make tons of variations that are useful for student practice. Naturally, I now have a challenge. I&#8217;ve hunted around <I>a little<\/i> to try to find an R solution, but I figured: Why not just ask? Someone out there might know the answer. <\/p>\n<p><strong>The question:<\/strong> Can I output <I>both<\/i> the text and an image to a file in R?  I do know how to output text and have used that to create files I can just upload into Moodle.  It&#8217;s very convenient. I also know how to create and save an image to a file.  But these are separate files.  I <i>don&#8217;t<\/i> know how to add an image to the text file. <\/p>\n<p><strong>More specific motivation. <\/strong>If I could add both text and image to a single file, I could create a &#8220;file&#8221; that contained both the image and all the text for a &#8220;question&#8221; and save it. Then I could run the script, create a bunch of questions and upload them. This would save a lot of time in creating a trove of similar questions that can be used to let students practice. (I tend to find I need at <i>least<\/i> 3 versions of each &#8220;thing&#8221;. The first is to &#8220;show&#8221;. The second is for them to &#8220;do&#8221; in my presence. The third is to be able to provide fresh practice when at home. If you squint you will notice the text in all the questions to the right is the same. In problems 7-9, force is always positive. So it tests understanding Impulse = area under F(t) graph, but a student who doesn&#8217;t know what to do with negative force might get away with not having their lack of knowledge detected.  So: that&#8217;s the minimum 3. Then I have 3 where F(t) is always negative. Them 3 where it is sometimes positive and sometimes negative.  That makes a minimum of 9 required.  I create graphs for all 9 with the same script but I have more manual stuff to do than I&#8217;d prefer. So if I could have the script just create a file containing everything, save it and upload,  I&#8217;d like that.<\/p>\n<p>Open Thread: but priority on the R question or things related to education, tutoring, teaching, teaching physics and so on.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Preface: A subset of my students like extra practice problems. Those taking AP tests especially would like some that have a &#8220;similar flavor&#8221; to the ones that actually appear on the AP Physics tests. (Make no mistake: certain &#8220;types&#8221; do appear on tests because none tests &#8220;all possible physics knowledge and skillzzzz&#8221; but rather emphasize &hellip; <a href=\"https:\/\/rankexploits.com\/musings\/2017\/r-advice-tutoring-related\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">R advice: Tutoring related.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463],"tags":[],"class_list":["post-25933","post","type-post","status-publish","format-standard","hentry","category-education"],"_links":{"self":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/posts\/25933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/comments?post=25933"}],"version-history":[{"count":0,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/posts\/25933\/revisions"}],"wp:attachment":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/media?parent=25933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/categories?post=25933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/tags?post=25933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}