Code Monkey home page Code Monkey logo

cranwhales's Introduction

cranwhales

This is a Shiny example application, meant to demonstrate how to convert synchronous (traditional) Shiny apps to asynchronous ones.

This is the synchronous version. The (naive) asynchronous version is here (diff). The optimized asynchronous version is here (diff).

To learn more about asynchronous programming in R and Shiny, see https://rstudio.github.io/promises/.

Installation

To run the app yourself, you'll need Shiny v1.1 or later. If you have an older version or aren't sure, you can install Shiny from CRAN:

install.packages("shiny")

You'll also need a number of other packages from CRAN:

install.packages(c("readr", "dplyr", "ggplot2", "DT", "glue", "lubridate", "gdata", "shinydashboard", "future"))

Now you're ready to run this app by calling shiny::runApp().

About the app

This application lets you view the downloads from RStudio's CRAN mirrors on any given day. It lets you specifically focus on the top downloaders ("whales"), who download tens of thousands of packages, usually with pretty curious access patterns.

Start by choosing a date and number of top downloaders to examine (or accept the defaults), then explore the tabs:

All traffic

Shows download count per hour, and highlights the traffic that came from the top N downloaders.

Biggest whales

Shows the top downloaders (with randomly assigned names in place of IP addresses), and their number of downloads for the day.

Whales by hour

Shows each whale's download count per hour of this day.

Detail view

See a specific whale's download patterns for the day, by looking at what packages they were downloading when. You can click and drag on the plot to view data points in detail, in a table view down below.


License

This application's code is offered to you under CC0 (i.e. public domain, "no rights reserved").

Acknowledgements

CRAN log data is from http://cran-logs.rstudio.com/

animals.txt was derived from https://www.randomlists.com/random-animals

adjectives.txt was derived from http://www.gingersoftware.com/content/grammar-rules/adjectives/lists-of-adjectives/

cranwhales's People

Contributors

alandipert avatar jcheng5 avatar

Watchers

 avatar  avatar  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.