Skip to content

Commit

Permalink
prepare CRAN release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
elbersb committed May 8, 2024
1 parent a18f0e9 commit e8cc348
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 25 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tidylog
Type: Package
Title: Logging for 'dplyr' and 'tidyr' Functions
Version: 1.0.2.9000
Version: 1.1.0
Authors@R: c(
person("Benjamin", "Elbers", email = "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0001-5392-3448")),
Expand All @@ -24,5 +24,5 @@ Encoding: UTF-8
LazyData: true
URL: https://github.com/elbersb/tidylog/
BugReports: https://github.com/elbersb/tidylog/issues
RoxygenNote: 7.1.2
RoxygenNote: 7.2.3
VignetteBuilder: knitr
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 1.0.2.9000
# 1.1.0

- switch to Github Actions for CI
- units package now supported (#51)
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ knitr::opts_chunk$set(
[![CRAN Version](https://www.r-pkg.org/badges/version/tidylog)](https://CRAN.R-project.org/package=tidylog)
[![Downloads](http://cranlogs.r-pkg.org/badges/tidylog)](https://CRAN.R-project.org/package=tidylog)
[![R-CMD-check](https://github.com/elbersb/tidylog/workflows/R-CMD-check/badge.svg)](https://github.com/elbersb/tidylog/actions)
[![Coverage status](https://codecov.io/gh/elbersb/tidylog/branch/master/graph/badge.svg)](https://codecov.io/github/elbersb/tidylog?branch=master)
[![Coverage status](https://codecov.io/gh/elbersb/tidylog/branch/master/graph/badge.svg)](https://app.codecov.io/github/elbersb/tidylog?branch=master)

The goal of tidylog is to provide feedback about dplyr and tidyr operations. It provides simple wrapper functions for almost all dplyr and tidyr functions, such as `filter`, `mutate`, `select`, `full_join`, and `group_by`.

Expand Down
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Version](https://www.r-pkg.org/badges/version/tidylog)](https://CRAN.R-project.o
[![Downloads](http://cranlogs.r-pkg.org/badges/tidylog)](https://CRAN.R-project.org/package=tidylog)
[![R-CMD-check](https://github.com/elbersb/tidylog/workflows/R-CMD-check/badge.svg)](https://github.com/elbersb/tidylog/actions)
[![Coverage
status](https://codecov.io/gh/elbersb/tidylog/branch/master/graph/badge.svg)](https://codecov.io/github/elbersb/tidylog?branch=master)
status](https://codecov.io/gh/elbersb/tidylog/branch/master/graph/badge.svg)](https://app.codecov.io/github/elbersb/tidylog?branch=master)

The goal of tidylog is to provide feedback about dplyr and tidyr
operations. It provides simple wrapper functions for almost all dplyr
Expand Down Expand Up @@ -97,7 +97,7 @@ for more information.

## More examples

### filter, distinct, drop\_na
### filter, distinct, drop_na

``` r
a <- filter(mtcars, mpg > 20)
Expand All @@ -123,7 +123,7 @@ k <- drop_na(airquality, Ozone)
#> drop_na: removed 37 rows (24%), 116 rows remaining
```

### mutate, transmute, replace\_na, fill
### mutate, transmute, replace_na, fill

``` r
a <- mutate(mtcars, new_var = 1)
Expand All @@ -146,12 +146,13 @@ h <- mutate(mtcars, am = recode(am, `0` = "zero", `1` = NA_character_))

i <- transmute(mtcars, mpg = mpg * 2, gear = gear + 1, new_var = vs + am)
#> transmute: dropped 9 variables (cyl, disp, hp, drat, wt, …)
#> transmute: dropped 9 variables (cyl, disp, hp, drat, wt, …)
#> changed 32 values (100%) of 'mpg' (0 new NAs)
#> changed 32 values (100%) of 'gear' (0 new NAs)
#> new variable 'new_var' (double) with 3 unique values and 0% NA

j <- replace_na(airquality, list(Solar.R = 1))
#> replace_na: converted 'Solar.R' from integer to double (7 fewer NA)
#> replace_na: changed 7 values (5%) of 'Solar.R' (7 fewer NAs)
k <- fill(airquality, Ozone)
#> fill: changed 37 values (24%) of 'Ozone' (37 fewer NAs)
```
Expand Down Expand Up @@ -241,7 +242,7 @@ b <- iris %>%
#> summarize_all: now 3 rows and 9 columns, ungrouped
```

### tally, count, add\_tally, add\_count
### tally, count, add_tally, add_count

``` r
a <- mtcars %>% group_by(gear, carb) %>% tally
Expand All @@ -257,7 +258,7 @@ d <- mtcars %>% add_count(gear, carb, name = "count")
#> add_count: new variable 'count' (integer) with 5 unique values and 0% NA
```

### pivot\_longer, pivot\_wider
### pivot_longer, pivot_wider

``` r
longer <- mtcars %>%
Expand All @@ -267,7 +268,8 @@ longer <- mtcars %>%
#> pivot_longer: reorganized (mpg, cyl, disp, hp, drat, …) into (var, value) [was 32x12, now 352x3]
wider <- longer %>%
pivot_wider(names_from = var, values_from = value)
#> pivot_wider: reorganized (var, value) into (mpg, cyl, disp, hp, drat, …) [was 352x3, now 32x12]
#> pivot_wider: reorganized (var, value) into (mpg, cyl, disp, hp, drat, …) [was
#> 352x3, now 32x12]
```

Tidylog also supports `gather` and `spread`.
Expand Down
15 changes: 8 additions & 7 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
This is a submission for version 1.0.2.

## Test environments

* local OS X, R 3.6.1
* CRAN win-builder: R-devel and R-release
* R-Hub: rhub::check_for_cran()
* ubuntu 14.04 (on travis-ci), R 3.6.1
* local OS X, R 4.2.0
* CRAN win-builder: R-devel
* GitHub Actions: macos, win, linux

## R CMD check results

No ERRORs, WARNINGSs, or NOTES.
No ERRORs or WARNINGSs.

1 NOTE:
* Error: CRAN URL not in canonical form vignette](https://cran.r-project.org/web/packages/tidylog/vignettes/benchmarks.html)
> this is spurious as the link is not to a package but to a vignette.
6 changes: 3 additions & 3 deletions man/transmute.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ that prints information about the operation}
transmute(.data, ...)
}
\arguments{
\item{.data}{see \link[dplyr:mutate]{transmute}}
\item{.data}{see \link[dplyr:transmute]{transmute}}

\item{...}{see \link[dplyr:mutate]{transmute}}
\item{...}{see \link[dplyr:transmute]{transmute}}
}
\value{
see \link[dplyr:mutate]{transmute}
see \link[dplyr:transmute]{transmute}
}
\description{
Wrapper around dplyr::transmute
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test_join.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ b <- data.frame(x = c(1, 2, 2, 4), z = 1:4)

test_that("univariate inner join has all columns, repeated matching rows", {
msg <- capture_messages({
j <- tidylog::inner_join(a, b, "x")
j <- tidylog::inner_join(a, b, "x", relationship = "many-to-many")
})

# one row from x not included
Expand Down Expand Up @@ -139,7 +139,7 @@ test_that("univariate semi join has x columns, matching rows", {

test_that("univariate full join has all columns, all rows", {
msg <- capture_messages({
j <- tidylog::full_join(a, b, "x")
j <- tidylog::full_join(a, b, "x", relationship = "many-to-many")
})

# one row from x included
Expand All @@ -155,7 +155,7 @@ test_that("univariate full join has all columns, all rows", {

test_that("univariate left join has all columns, all rows", {
msg <- capture_messages({
j <- tidylog::left_join(a, b, "x")
j <- tidylog::left_join(a, b, "x", relationship = "many-to-many")
})

# one row from x included
Expand All @@ -171,7 +171,7 @@ test_that("univariate left join has all columns, all rows", {

test_that("univariate right join has all columns, all rows", {
msg <- capture_messages({
j <- tidylog::right_join(a, b, "x")
j <- tidylog::right_join(a, b, "x", relationship = "many-to-many")
})

# one row from x not included
Expand Down

0 comments on commit e8cc348

Please sign in to comment.