Skip to content

Commit

Permalink
Version 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marberts committed Apr 12, 2024
1 parent 62ad7d1 commit 9d26f17
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
^pkgdown$
^inst/logo\.R$
^CRAN-SUBMISSION$
^revdep$
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
*.Rproj
inst/doc
docs
pkgdown
pkgdown
revdep
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gpindex
Title: Generalized Price and Quantity Indexes
Version: 0.6.0.9017
Version: 0.6.1
Authors@R: c(
person("Steve", "Martin", role = c("aut", "cre", "cph"),
email = "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ knitr::opts_chunk$set(
[![gpindex status badge](https://marberts.r-universe.dev/badges/gpindex)](https://marberts.r-universe.dev)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/r-gpindex.svg)](https://anaconda.org/conda-forge/r-gpindex)
[![R-CMD-check](https://github.com/marberts/gpindex/workflows/R-CMD-check/badge.svg)](https://github.com/marberts/gpindex/actions)
[![codecov](https://codecov.io/gh/marberts/gpindex/graph/badge.svg?token=TL7V9QO0BH)](https://codecov.io/gh/marberts/gpindex)
[![codecov](https://codecov.io/gh/marberts/gpindex/graph/badge.svg?token=TL7V9QO0BH)](https://app.codecov.io/gh/marberts/gpindex)
[![DOI](https://zenodo.org/badge/261861375.svg)](https://zenodo.org/doi/10.5281/zenodo.10097742)
<!-- badges: end -->

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ badge](https://marberts.r-universe.dev/badges/gpindex)](https://marberts.r-unive
[![Conda
Version](https://img.shields.io/conda/vn/conda-forge/r-gpindex.svg)](https://anaconda.org/conda-forge/r-gpindex)
[![R-CMD-check](https://github.com/marberts/gpindex/workflows/R-CMD-check/badge.svg)](https://github.com/marberts/gpindex/actions)
[![codecov](https://codecov.io/gh/marberts/gpindex/graph/badge.svg?token=TL7V9QO0BH)](https://codecov.io/gh/marberts/gpindex)
[![codecov](https://codecov.io/gh/marberts/gpindex/graph/badge.svg?token=TL7V9QO0BH)](https://app.codecov.io/gh/marberts/gpindex)
[![DOI](https://zenodo.org/badge/261861375.svg)](https://zenodo.org/doi/10.5281/zenodo.10097742)
<!-- badges: end -->

Expand Down
4 changes: 1 addition & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
## Test environments

- local Ubuntu 20.04 installation, R 4.3.1
- local Ubuntu 20.04 installation, R 4.3.3
- win-builder (devel, release, oldrelease)
- mac-builder (release)
- R-hub (fedora-clang devel)

## R CMD check results

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-means.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test_that("generalized means agree with base implementation", {
weighted.mean(xna^(3.25), w, na.rm = TRUE)^(1 / 3.25))
})

test_that("generalized means satifies key properties", {
test_that("generalized mean satifies key properties", {
# Reversal
expect_equal(generalized_mean(-3)(x),
1 / generalized_mean(3)(1 / x))
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-weights.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ test_that("weights transmute correctly", {
)
expect_equal(transmute_weights(2, 1)(c(1, NA)), c(1, NA))
expect_equal(transmute_weights(-1, 1)(x, w), scale_weights(w / x))
expect_equal(transmute_weights(1, -1)(xna, w), scale_weights(w * xna))
expect_equal(
transmute_weights(7, -3)(x, transmute_weights(-3, 7)(x, w)),
scale_weights(w)
Expand Down

0 comments on commit 9d26f17

Please sign in to comment.