Giter Club home page Giter Club logo

timestamp's Introduction

timestamp

Note: timestamp hasn't been updated in a while (not that it particularly needs to be). If you're looking for something that is currently being updated and has more features you might consider the 'prompt' package which provides more options to add to your prompt (time stamps being one of those options).

The timestamp package is an R package that allows you to add a timestamp to your prompt that updates with each top level callback. Here is an example of what the package can do for you

> rnorm(1)
[1] 1.593738
> # I want a time stamp!
> library(timestamp)
23:23:11 > rnorm(1)
[1] 0.772474
23:23:13 > print("Yay - I have a time stamp!")
[1] "Yay - I have a time stamp!"
23:23:20 > rnorm(1)
[1] 0.9360234
23:23:26 > print("Now I don't want it anymore...")
[1] "Now I don't want it anymore..."
23:23:33 > removeTimeStamp()
> # Back to normal
> # This is boring - let's add it back
> addTimeStamp()
23:23:55 > print("So much better")
[1] "So much better"
23:24:00 > removeTimeStamp()
> options(prompt = "Raptors Suck > ")
Raptors Suck > addTimeStamp()
23:24:42 Raptors Suck > print("It respects your current prompt")
[1] "It respects your current prompt"
23:24:50 Raptors Suck > removeTimeStamp()
Raptors Suck > 

Installation

Currently there isn't a release on CRAN.

You can, however, download the zip ball or tar ball, decompress and run R CMD INSTALL on it, or use the devtools package to install the development version:

## Make sure your current packages are up to date
update.packages()
## devtools is required
library(devtools)
install_github("timestamp", "dasonk")

Future Goals

  • Add customization of the timestamp to at least include some common variations.
  • Add working directory to prompt if user desires.
  • Remove stamp if package is detached.

You are welcome to:

timestamp's People

Contributors

dasonk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

arturochian

timestamp'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.