Skip to content

Commit

Permalink
Submit to CRAN (#10)
Browse files Browse the repository at this point in the history
* Replace call to `installed.packages()`, which can be slow, with call to `packageNotFoundError()`
* Edit Description text
  • Loading branch information
kinto-b authored Oct 29, 2021
1 parent d43556d commit 9bd144d
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 11 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
^codecov\.yml$
^\.github$
^\.covrignore$
^CRAN-RELEASE$
2 changes: 2 additions & 0 deletions CRAN-RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This package was submitted to CRAN on 2021-10-28.
Once it is accepted, delete this file and tag the release (commit 8d7bbff).
10 changes: 8 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ Authors@R:
family = "Behr",
role = c("aut", "cre", "cph"),
email = "kinto.behr@gmail.com")
Description: Tools for constructing simple make-like pipelines with
minimal overheads.
Description: A suite of tools for transforming an existing workflow into a
self-documenting pipeline with very minimal upfront costs. Segments of
the pipeline are specified in much the same way a 'Make' rule is, by
declaring an executable recipe (which might be an R script), along
with the corresponding targets and dependencies. When the entire
pipeline is run through, only those recipes that need to be executed
will be. Meanwhile, execution metadata is captured behind the scenes
for later inspection.
License: GPL (>= 3)
URL: https://kinto-b.github.io/makepipe/,
https://github.com/kinto-b/makepipe
Expand Down
9 changes: 0 additions & 9 deletions R/package_datetime.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@
#' package_datetime(c("utils", "makepipe"))
package_datetime <- function(package) {
stopifnot(is.character(package))
missing_package <- setdiff(package, utils::installed.packages()[, 1])
if (length(missing_package) > 0) {
stop(
"Package not installed: `",
paste(missing_package, sep = "`, `"), "`",
call. = FALSE
)
}

out <- vapply(
package,
function(pkg) as.numeric(package_description_mtime(pkg)),
Expand Down
1 change: 1 addition & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![Codecov test coverage](https://codecov.io/gh/kinto-b/makepipe/branch/master/graph/badge.svg)](https://app.codecov.io/gh/kinto-b/makepipe?branch=master)
[![R-CMD-check](https://github.com/kinto-b/makepipe/workflows/R-CMD-check/badge.svg)](https://github.com/kinto-b/makepipe/actions)
[![CRAN status](https://www.r-pkg.org/badges/version/makepipe)](https://CRAN.R-project.org/package=makepipe)
<!-- badges: end -->

The goal of `makepipe` is to allow for the construction of make-like pipelines in R
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
[![Codecov test
coverage](https://codecov.io/gh/kinto-b/makepipe/branch/master/graph/badge.svg)](https://app.codecov.io/gh/kinto-b/makepipe?branch=master)
[![R-CMD-check](https://github.com/kinto-b/makepipe/workflows/R-CMD-check/badge.svg)](https://github.com/kinto-b/makepipe/actions)
[![CRAN
status](https://www.r-pkg.org/badges/version/makepipe)](https://CRAN.R-project.org/package=makepipe)
<!-- badges: end -->

The goal of `makepipe` is to allow for the construction of make-like
Expand Down
6 changes: 6 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Resubmission
This is a resubmission (thank you for taking the time to read my last
submission). In this version I have:

* Removed package name and all backticks from Description text.

## Test environments
* local R installation, R 4.1.0
* ubuntu 16.04 (on travis-ci), R 4.1.0
Expand Down

0 comments on commit 9bd144d

Please sign in to comment.