Skip to content

Commit

Permalink
Fixed incompatability with stringr 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusab committed Jun 13, 2015
1 parent 6ea358c commit a0005e5
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 17 deletions.
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Package: beepr
Type: Package
Title: Easily Play Notification Sounds on any Platform
Version: 1.1
Version: 1.2
Encoding: UTF-8
Date: 2014-06-26
Date: 2015-06-13
Author: Rasmus Bååth <[email protected]>
Maintainer: Rasmus Bååth <[email protected]>
Description: This package contains one function, beep(), with one purpose: To
Description: The sole function of this package is beep(), with the purpose to
make it easy to play notification sounds on whatever platform you are on.
It is intended to be useful, for example, if you are running a long analysis
in the background and want to know when it is ready.
License: GPL-3
Imports:
stringr,
stringr (>= 1.0.0),
audio
3 changes: 1 addition & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by roxygen2 (4.0.1): do not edit by hand
# Generated by roxygen2 (4.1.1): do not edit by hand

export(beep)
export(ping)
import(audio)
import(stringr)
5 changes: 3 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
beepr 1.2
===========

* Removed the previously deprecated `ping` function.
* Fixed incompatibility with `stringr` 1.0.0
* Added support for playing urls like beep("http://www.kessels.com/catsounds/cat1.wav"). Currently "beep" can only handle http urls, https is not supported.
* Added "sword" sound inspired by the presentation by Yihui Xie at UseR! 2014 (https://github.com/yihui/knitr-talks/tree/master/useR2014)
* Added experimental support for playing urls like beep("http://www.kessels.com/catsounds/cat1.wav"). Currently "beep" can only handle http urls, https is not supported.


beepr 1.1
===========
Expand Down
8 changes: 1 addition & 7 deletions R/beepr.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,8 @@ beep <- function(sound=1, expr=NULL) {
})
}

#' @export
ping <- function(sound=1, expr=NULL) {
beep(sound=1, expr=NULL)
.Deprecated("beep", msg = "ping(...) is deprecated in favor of beep(...). Same function, different name.")
}

is_wav_fname <- function(fname) {
str_detect(fname, ignore.case("\\.wav$"))
str_detect(fname, regex("\\.wav$", ignore_case = TRUE))
}

play_vlc <- function(fname) {
Expand Down
2 changes: 2 additions & 0 deletions beepr.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran
PackageRoxygenize: rd,collate,namespace
3 changes: 2 additions & 1 deletion man/beep.Rd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
% Generated by roxygen2 (4.0.1): do not edit by hand
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/beepr.R
\name{beep}
\alias{beep}
\title{Play a short sound}
Expand Down
3 changes: 2 additions & 1 deletion man/beepr.Rd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
% Generated by roxygen2 (4.0.1): do not edit by hand
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/beepr-package.R
\docType{package}
\name{beepr}
\alias{beepr}
Expand Down

0 comments on commit a0005e5

Please sign in to comment.