Giter Site home page Giter Site logo

quoter's Introduction

quoter

Lifecycle: experimental

The quoter R package generates a random quote sourced from various sources. You can use this, say, to output an inspirational quote every time your R starts.

Installation

You can install the released version of quoter with

remotes::install_github("emitanaka/quoter")

Example

Get a random quote that are sourced from brainy, statquotes or dadjoke.

quoter::quotes(source = "brainy")
#> Failure is nature's plan to prepare you for great 
#> responsibilities. 
#> --- Napoleon Hill

You can get a decorated one. The color output will show on terminal.

TODO: need to add dark/light themes. Also ability to customise output easily.

quoter::decorate(quoter::quotes())
#> ----------------------------------------
#> To understand God's thoughts we must study statistics, for these
#> are the measure of His purpose.
#>          -- Florence Nightingale
#> ----------------------------------------

Show quote on R start-up

To show quote on R start-up, you will need a special function ot the .Rprofile file. The easiest way to access the .Rprofile is to use

usethis::edit_r_profile()

In the .Rprofile file add below to get a quotation for every start-up.

.First <- function() {
  quoter::decorate(quoter::quotes())
}

quoter's People

Contributors

emitanaka avatar

Stargazers

Mikhail Dozmorov avatar Nicholas Tierney avatar

Watchers

James Cloos avatar  avatar

Forkers

mdozmorov

quoter's Issues

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.