Skip to content

Creating steps (instructions) to build mosaics #6

@rpodcast

Description

@rpodcast

One of my bigger future ideas for shinyLEGO is to let the user download a set of instructions they can use to build the mosaic after they select their desired number of steps. The UI in my current version lets the user view the individual steps. I created some utility functions and updated existing functions in the backend inspired by your previous posts to facilitate step creation. Would you be open to me contributing this functionality to brickr? Or did you have that already in the works? I'm sure I would need to do a bit of refactoring to make it compatible with brickr. Here are links for more info:

  • generate_steps: Creates a tidy data frame with the bricks required at a specified number of steps. This is very much similar to your earlier function. Uses the Img_bricks data frame as input.
  • step_pieces: Generate a tidy data frame with pieces required at each step (uses data frame produced by generate_steps() as input). Optionally it can simply have a specific step number and it will only return the pieces needed for that step.
  • plot_instructions: Very similar to your previous version, but it takes the output from generate_steps() as input and either prints instructions for all steps or for a specified step number.
  • table_pieces: Very similar to your earlier version but allows for summarizing a particular step if specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions