diff --git a/.Rbuildignore b/.Rbuildignore index e13c405..a10fc7d 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,3 +1,5 @@ ^.*\.Rproj$ ^\.Rproj\.user$ ^LICENSE\.md$ +^CRAN-RELEASE$ +^cran-comments\.md$ diff --git a/CRAN-RELEASE b/CRAN-RELEASE new file mode 100644 index 0000000..4f99a91 --- /dev/null +++ b/CRAN-RELEASE @@ -0,0 +1,2 @@ +This package was submitted to CRAN on 2020-07-01. +Once it is accepted, delete this file and tag the release (commit a2a25457ae). diff --git a/DESCRIPTION b/DESCRIPTION index 8b4c4c9..97219f3 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,12 +1,12 @@ Package: stickr Type: Package Title: View and Use R Hex Stickers -Version: 0.3.0 +Version: 0.3.1 Authors@R: person("Alex", "Gold", email = "alexkgold@gmail.com", role = c("aut", "cre")) Description: Download and use R hex stickers. Stickers made available in standardized locations in GitHub repositories, as well as those in the - [`rstudio/hex-stickers`](github.com/rstudio/hex-stickers) repository will be available. + repository will be available. URL: https://github.com/akgold/stickr License: MIT + file LICENSE Encoding: UTF-8 diff --git a/R/funs.R b/R/funs.R index 5d852d5..a2cdccb 100644 --- a/R/funs.R +++ b/R/funs.R @@ -181,10 +181,13 @@ pkg_repo <- function(pkg) { } get_pkg_git <- function(pkg) { - if (!pkg %in% rownames(utils::installed.packages())) return(NULL) + desc <- tryCatch(utils::packageDescription(pkg), + warning = function(e) "Not Found") - txt <- unclass(utils::packageDescription(pkg))[c("url", "bugreports", - "URL", "BugReports")] + if (desc[1] == "Not Found") return(NULL) + + txt <- unclass(desc)[c("url", "bugreports", + "URL", "BugReports")] txt <- txt[!vapply(txt, is.null, logical(1))] if (length(txt) == 0) return(NULL) diff --git a/cran-comments.md b/cran-comments.md new file mode 100644 index 0000000..809e7e7 --- /dev/null +++ b/cran-comments.md @@ -0,0 +1,10 @@ +## Test environments +* local R installation, R 3.5.2 +* ubuntu 16.04 (on travis-ci), R 3.5.2 +* win-builder (devel) + +## R CMD check results + +0 errors | 0 warnings | 1 note + +* This is a new release.