Skip to content

Commit

Permalink
Ready for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
marberts committed Nov 18, 2023
1 parent 637a9a0 commit 2025d4f
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: piar
Title: Price Index Aggregation
Version: 0.5.0.9030
Version: 0.6.0
Authors@R: c(
person("Steve", "Martin", role = c("aut", "cre", "cph"),
email = "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion R/aggregation_structure-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ str.piar_aggregation_structure <- function(object, ...) {

#' Test if an object is a price index aggregation structure
#'
#' Test if an object is a price index aggregation structure
#' Test if an object is a price index aggregation structure.
#'
#' @param x An object to test.
#'
Expand Down
4 changes: 2 additions & 2 deletions R/aggregation_structure.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#' elemental aggregate the same weight.
#'
#' @returns
#' A price index aggregation structure. This is an object of class
#' `piar_aggregation_structure`, which has the following components.
#' A price index aggregation structure of class `piar_aggregation_structure`.
#' This is a list-S3 class with the following components.
#'
#' \item{child}{A nested list that gives the positions of the immediate
#' children for each node in each level of the aggregation structure above the
Expand Down
2 changes: 1 addition & 1 deletion R/expand_classification.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ paste_until <- function(x, i) {
expand_classification <- function(x, width = 1L) {
x <- as.character(x)
width <- as.integer(width)
if (any(width <= 0)) {
if (any(width <= 0L)) {
stop("'width' must be strictly positive")
}
if (anyNA(width)) {
Expand Down
2 changes: 1 addition & 1 deletion R/mean.piar_index.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#'
#' @family index methods
#' @export
mean.piar_index <- function(x, weights = NULL, window = 3, na.rm = FALSE,
mean.piar_index <- function(x, weights = NULL, window = 3L, na.rm = FALSE,
r = 1, ...) {
if (!is.null(weights)) {
if (length(weights) != length(x$time) * length(x$levels)) {
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ knitr::opts_chunk$set(
)
```

# Price Index Aggregation in R <a href="https://marberts/github.io/piar/"><img src="man/figures/logo.png" align="right" height="139" alt="piar website" /></a>
# Price Index Aggregation in R <a href="https://marberts.github.io/piar/"><img src="man/figures/logo.png" align="right" height="139" alt="piar website" /></a>

<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/piar)](https://cran.r-project.org/package=piar)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<!-- README.md is generated from README.Rmd. Please edit that file. -->

# Price Index Aggregation in R <a href="https://marberts/github.io/piar/"><img src="man/figures/logo.png" align="right" height="139" alt="piar website" /></a>
# Price Index Aggregation in R <a href="https://marberts.github.io/piar/"><img src="man/figures/logo.png" align="right" height="139" alt="piar website" /></a>

<!-- badges: start -->

Expand Down
4 changes: 2 additions & 2 deletions man/aggregation_structure.Rd

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

2 changes: 1 addition & 1 deletion man/is_aggregation_structure.Rd

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

2 changes: 1 addition & 1 deletion man/mean.piar_index.Rd

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

0 comments on commit 2025d4f

Please sign in to comment.