Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trinker/cal
R console calendars
https://github.com/trinker/cal
Last synced: 7 days ago
JSON representation
R console calendars
- Host: GitHub
- URL: https://github.com/trinker/cal
- Owner: trinker
- Created: 2018-03-03T01:47:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-03T15:10:23.000Z (over 6 years ago)
- Last Synced: 2024-08-06T03:04:57.718Z (3 months ago)
- Language: R
- Size: 17.6 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
title: "cal"
date: "`r format(Sys.time(), '%d %B, %Y')`"
output:
md_document
---```{r, echo=FALSE}
desc <- suppressWarnings(readLines("DESCRIPTION"))
regex <- "(^Version:\\s+)(\\d+\\.\\d+\\.\\d+)"
loc <- grep(regex, desc)
ver <- gsub(regex, "\\2", desc[loc])
#verbadge <- sprintf('', ver, ver)
verbadge <- ''
```````{r, echo=FALSE, message=FALSE, warning=FALSE}
",sep="")
library(knitr)
knit_hooks$set(htmlcap = function(before, options, envir) {
if(!before) {
paste('
}
})
knitr::opts_knit$set(self.contained = TRUE, cache = FALSE, fig.align = 'center')
knitr::opts_chunk$set(fig.path = "tools/figure/", comment=NA)
options(scipen=999)
```[![Build Status](https://travis-ci.org/trinker/cal.svg?branch=master)](https://travis-ci.org/trinker/cal)
[![Coverage Status](https://coveralls.io/repos/trinker/cal/badge.svg?branch=master)](https://coveralls.io/r/trinker/cal?branch=master)
`r verbadge`**cal** is an R package designed to partially mimic the [Unix `cal`](https://www.tutorialspoint.com/unix_commands/cal.htm) command line tool for generating ASCII calendars in the console.
# Installation
To download the development version of **cal**:
Download the [zip ball](https://github.com/trinker/cal/zipball/master) or [tar ball](https://github.com/trinker/cal/tarball/master), decompress and run `R CMD INSTALL` on it, or use the **pacman** package to install the development version:
```r
if (!require("pacman")) install.packages("pacman")
pacman::p_load_current_gh("trinker/cal")
```# Examples:
```{r}
cal()
cal("2017")
cal("03")
cal("Jan")
cal("december")
cal("2:5")
cal("-r 4")
cal("-r -3")
cal("-r -3:4")
cal("03 2015")
cal("Jan 2015")
cal("January 2015")
```
# ContactYou are welcome to:
- submit suggestions and bug-reports at:
- send a pull request on:
- compose a friendly e-mail to: