Skip to content

Commit

Permalink
minor tweaks/updates
Browse files Browse the repository at this point in the history
  • Loading branch information
achubaty committed May 11, 2018
1 parent f6ddbdf commit 83764bb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 19 deletions.
18 changes: 8 additions & 10 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@ Package: meow
Type: Package
Title: Get Random Pictures of Cats
Description: Queries http://thecatapi.com for cute cat photos and displays them in yor R session. Meow!
Version: 0.1.4
Date: 2016-12-08
Version: 0.1.5
Date: 2018-05-11
Authors@R: c(
person(c("Alex", "M"), "Chubaty",
email="[email protected]",
role=c("aut", "cre")),
person("Kiri", "Whan",
email="[email protected]",
role=c("aut"))
person(c("Alex", "M"), "Chubaty", email = "[email protected]", role = c("aut", "cre")),
person("Kiri", "Whan", email = "[email protected]", role = c("aut"))
)
URL: http://github.com/achubaty/meow
BugReports: https://github.com/achubaty/meow/issues
License: GPL
Depends:
R (>= 3.1.2)
Imports:
jpeg
graphics,
jpeg,
utils
Suggests:
testthat
RoxygenNote: 5.0.1
RoxygenNote: 6.0.1
9 changes: 3 additions & 6 deletions R/meow.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,11 @@ NULL
#' @return Invisibly returns logical, \code{TRUE} indicating success.
#' Invoked for its side effect of displaying a cat picture.
#'
#' @author Alex Chubaty and Kiri Whan
#' @export
#' @importFrom graphics plot
#' @importFrom jpeg readJPEG
#' @importFrom utils download.file
#' @export
#' @docType methods
#' @rdname meow-method
#'
#' @author Alex Chubaty and Kiri Whan
#'
#' @examples
#' meow()
Expand All @@ -47,7 +44,7 @@ meow <- function() {

# download and plot the cat
tmp <- tempfile()
dl_status <- download.file(url, tmp, quiet = TRUE, mode = "wb")
dl_status <- utils::download.file(url, tmp, quiet = TRUE, mode = "wb")

pic <- jpeg::readJPEG(tmp)
plot(1, type = "n", xlim = c(0, 1), ylim = c(0, 1), bty = "n",
Expand Down
1 change: 0 additions & 1 deletion man/meow-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/meow-method.Rd → man/meow.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 83764bb

Please sign in to comment.