View source: R/lang_wrappers_en.R
run_actions | R Documentation |
This function produces the animation that shows all actions performed by
Karel since its world was generated by generate_world
.
run_actions(loop = FALSE)
loop |
A logical value TRUE or FALSE indicating if the animation should repeat itself after finished or not (defaults to FALSE). |
Produces an animation with gganimate
.
generate_world
generate_world("mundo001")
move()
pick_beeper()
turn_left()
put_beeper()
if (interactive()) run_actions()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.