Git Product home page Git Product logo

shinylego's Introduction

lifecycle

ShinyLEGO: Create LEGO mosaics directly from R and Shiny

ShinyLEGO is a Shiny application that lets you create a simulated mosaic composed of LEGO bricks from any image file. Once your picture is uploaded, you can customize various settings for your mosaic such as dimensions, brightness, and color types. In addition, the application will generate specific instructions so that you can build the mosaic yourself! These instructions contain the brick colors and types required for each step, and a diagram showing how the bricks are to be assembled.

This application would not be possible without the innovative R scripts created by Ryan Timpe! Ryan has written excellent blogposts detailing the workflow this application draws upon, and the code for each post can be found on his LEGOMosaics GitHub repository:

Installation

You can install the development version of shinylego from GitHub with:

# install.packages("remotes")
remotes::install_github("rpodcast/shinylego")

Usage

Once you have installed the package, you can run the application within your R session using the following command:

shinylego::run_app()

Deployments

shinylego is also available on the Shinyapps.io hosting service at rpodcast.shinyapps.io/shinylego.

Note for developer: The deployment should not include files associated with renv, since the shinyapps.io service will handle package versions during the deployment process. Add the files/directories required for deployment in the dev/app_manifest.txt file, and execute deployment with the following:

rsconnect::deployApp(appName = "shinylego", appFileManifest = "dev/app_manifest.txt", launch.browser = FALSE)

Development

Contributions are welcome! This application uses the renv package to manage the versions of dependencies. After cloning the repository, launch a new session in the repository root directory and execute renv::restore() to download the package library.

Acknowlegements

In addition to Ryan Timpe’s excellent R programs detailed above, this application utilizes many powerful packages in the shiny ecosystem such as the following:

CoC

Please note that the ‘shinylego’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

shinylego's People

Contributors

rpodcast avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.