From 243b51336045dd1c6944bf2f86a6c625a68375e9 Mon Sep 17 00:00:00 2001 From: mitchelloharawild Date: Mon, 29 Nov 2021 17:04:46 +1100 Subject: [PATCH] CRAN check fixes --- .Rbuildignore | 1 + DESCRIPTION | 1 - R/accuracy.R | 4 ++-- README.Rmd | 2 +- README.md | 2 +- man/distribution_accuracy_measures.Rd | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index f8c25c71..95f59629 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -14,3 +14,4 @@ Makefile ^revdep$ ^\.lintr$ ^\.github$ +^CRAN-RELEASE$ diff --git a/DESCRIPTION b/DESCRIPTION index f30333f8..34ad6dca 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -68,7 +68,6 @@ RdMacros: ByteCompile: true Encoding: UTF-8 Language: en-GB -LazyData: true Roxygen: list(markdown = TRUE, roclets=c('rd', 'collate', 'namespace')) RoxygenNote: 7.1.2 diff --git a/R/accuracy.R b/R/accuracy.R index be181174..648e6d5b 100644 --- a/R/accuracy.R +++ b/R/accuracy.R @@ -315,7 +315,7 @@ CRPS <- function(.dist, .actual, n_quantiles = 1000, na.rm = TRUE, ...){ #' integral of the quantile score over all possible quantiles: #' #' \deqn{ -#' \text{CRPS}(F,y) = 2 \int_0^1 s_p(q_p,y) dp +#' CRPS(F,y) = 2 \int_0^1 s_p(q_p,y) dp #' }{ #' CRPS(F,y) = 2 integral_0^1 s_p(q_p,y) dp #' } @@ -323,7 +323,7 @@ CRPS <- function(.dist, .actual, n_quantiles = 1000, na.rm = TRUE, ...){ #' It can be computed directly from the distribution via: #' #' \deqn{ -#' \text{CRPS}(F,y) = \int_{-\infty}^\infty (F(x) - 1{y\leq x})^2 dx +#' CRPS(F,y) = \int_{-\infty}^\infty (F(x) - 1{y\leq x})^2 dx #' }{ #' CRPS(F,y) = integral_{-\infty}^\infty (F(x) - 1{y\leq x})^2 dx #' } diff --git a/README.Rmd b/README.Rmd index 1243df26..f727c70e 100644 --- a/README.Rmd +++ b/README.Rmd @@ -15,7 +15,7 @@ knitr::opts_chunk$set( # fabletools [![R build status](https://github.com/tidyverts/fabletools/workflows/R-CMD-check/badge.svg)](https://github.com/tidyverts/fabletools) -[![Code test coverage](https://codecov.io/gh/tidyverts/fabletools/branch/master/graph/badge.svg)](https://codecov.io/gh/tidyverts/fabletools?branch=master) +[![Code test coverage](https://codecov.io/gh/tidyverts/fabletools/branch/master/graph/badge.svg)](https://app.codecov.io/gh/tidyverts/fabletools?branch=master) [![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html) [![Licence](https://img.shields.io/badge/licence-GPL--3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html) diff --git a/README.md b/README.md index 309a632d..bac07ffe 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![R build status](https://github.com/tidyverts/fabletools/workflows/R-CMD-check/badge.svg)](https://github.com/tidyverts/fabletools) [![Code test -coverage](https://codecov.io/gh/tidyverts/fabletools/branch/master/graph/badge.svg)](https://codecov.io/gh/tidyverts/fabletools?branch=master) +coverage](https://codecov.io/gh/tidyverts/fabletools/branch/master/graph/badge.svg)](https://app.codecov.io/gh/tidyverts/fabletools?branch=master) [![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html) [![Licence](https://img.shields.io/badge/licence-GPL--3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html) diff --git a/man/distribution_accuracy_measures.Rd b/man/distribution_accuracy_measures.Rd index 169914fe..bc3aab60 100644 --- a/man/distribution_accuracy_measures.Rd +++ b/man/distribution_accuracy_measures.Rd @@ -71,7 +71,7 @@ the pinball loss quantile score defined above. Its value is twice the integral of the quantile score over all possible quantiles: \deqn{ - \text{CRPS}(F,y) = 2 \int_0^1 s_p(q_p,y) dp + CRPS(F,y) = 2 \int_0^1 s_p(q_p,y) dp }{ CRPS(F,y) = 2 integral_0^1 s_p(q_p,y) dp } @@ -79,7 +79,7 @@ integral of the quantile score over all possible quantiles: It can be computed directly from the distribution via: \deqn{ - \text{CRPS}(F,y) = \int_{-\infty}^\infty (F(x) - 1{y\leq x})^2 dx + CRPS(F,y) = \int_{-\infty}^\infty (F(x) - 1{y\leq x})^2 dx }{ CRPS(F,y) = integral_{-\infty}^\infty (F(x) - 1{y\leq x})^2 dx }