knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

openinghours

Lifecycle: experimental R build status Codecov test coverage License: MIT

openinghours is an R package to read and write strings of opening hours to the half hour.

Installation

To install the developmental version from GitHub

# install.packages("remotes")
remotes::install_github("poissonconsulting/openinghours")

Demonstration

library(openinghours)
library(hms) # for printing of times
library(tidyr) # to unnest list column

x <- c("Store" = "9:00-17:00")

data <- read_opening_hours(x)
unnest(data, "OpeningHours")

Contribution

Please report any issues.

Pull requests are always welcome.

Code of Conduct

Please note that the openinghours project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.



poissonconsulting/openinghours documentation built on July 28, 2020, 4:36 p.m.