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 >
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")
- 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:
- submit suggestions and bug-reports at: https://github.com/dasonk/timestamp/issues
- or send a pull request on: https://github.com/dasonk/timestamp/
timestamp's People
Forkers
arturochiantimestamp's Issues
Clean up and put on CRAN.
Why not
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.