Skip to content

Commit

Permalink
v2.0.4 - remove a JMD test because the case being tested is now valid…
Browse files Browse the repository at this point in the history
… and data available in the database.
  • Loading branch information
mpascariu committed Jan 2, 2024
1 parent 0ae2da3 commit 0cbc24b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: MortalityLaws
Type: Package
Title: Parametric Mortality Models, Life Tables and HMD
Version: 2.0.2
Version: 2.0.4
Authors@R: c(
person("Marius D.", "Pascariu", role = c("aut", "cre", "cph"), email = "mpascariu@outlook.com", comment = c(ORCID = "0000-0002-2568-6489")),
person("Vladimir", "Canudas-Romo", role = "ctb"))
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version 2.0.2
version 2.0.3
- Change interaction with external resources and update documentation;

version 1.9.9
Expand Down
4 changes: 2 additions & 2 deletions R/MortalityLaw_S3.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -------------------------------------------------------------- #
# Author: Marius D. PASCARIU
# Last Update: Thu Jul 20 21:46:38 2023
# Last Update: Mon Aug 7 21:52:24 2023
# -------------------------------------------------------------- #


Expand All @@ -20,7 +20,7 @@ print.MortalityLaw <- function(x, ...) {


#' Summary MortalityLaw
#' @param x an object of class \code{"MortalityLaw"}
#' @param object an object of class \code{"MortalityLaw"}
#' @param digits number of digits to display.
#' @param ... additional arguments affecting the summary produced.
#' @return A list of model diagnosis
Expand Down
3 changes: 1 addition & 2 deletions R/MortalityLaws-package.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -------------------------------------------------------------- #
# Author: Marius D. PASCARIU
# Last Update: Wed Jul 19 14:27:59 2023
# Last Update: Mon Aug 7 21:48:58 2023
# -------------------------------------------------------------- #

# MortalityLaws Package
Expand All @@ -19,6 +19,5 @@
#' @importFrom pbapply startpb closepb setpb
#' @import rvest httr
#' @name MortalityLaws
#' @aliases NULL
#' @docType package
"_PACKAGE"
2 changes: 2 additions & 0 deletions man/MortalityLaws.Rd

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

4 changes: 2 additions & 2 deletions man/summary.MortalityLaw.Rd

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

14 changes: 8 additions & 6 deletions tests/testthat/test_ReadJMD.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# --------------------------------------------------- #
# -------------------------------------------------------------- #
# Title:
# Author: Marius D. PASCARIU
# Last update: Sun May 02 17:37:09 2021
# --------------------------------------------------- #
# Last Update: Tue Jan 2 10:37:14 2024
# -------------------------------------------------------------- #
remove(list = ls())

# Wrong index
Expand All @@ -25,9 +26,10 @@ expect_error(ReadJMD(what = "e0",
regions = "Japan",
interval = "5x1"))

expect_error(ReadJMD(what = "LT_f",
regions = "Kyoto",
interval = "1x1"))
# remove test since the case is now valid and available in the database.
# expect_error(ReadJMD(what = "LT_f",
# regions = "Kyoto",
# interval = "1x1"))

expect_output(
print(JMD_sample)
Expand Down

0 comments on commit 0cbc24b

Please sign in to comment.