Skip to content

Commit 58e47aa

Browse files
committed
version 2.1.1
- privide anchors to all documented external \links{};
1 parent 2c1418d commit 58e47aa

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: MortalityLaws
22
Type: Package
33
Title: Parametric Mortality Models, Life Tables and HMD
4-
Version: 2.1.0
4+
Version: 2.1.1
55
Authors@R: c(
66
person("Marius D.", "Pascariu", role = c("aut", "cre", "cph"), email = "mpascariu@outlook.com", comment = c(ORCID = "0000-0002-2568-6489")),
77
person("Vladimir", "Canudas-Romo", role = "ctb"))
@@ -32,5 +32,5 @@ Suggests:
3232
URL: https://github.com/mpascariu/MortalityLaws
3333
BugReports: https://github.com/mpascariu/MortalityLaws/issues
3434
Encoding: UTF-8
35-
RoxygenNote: 7.3.0
35+
RoxygenNote: 7.3.2
3636
VignetteBuilder: knitr

NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
version 2.1.1
2+
- privide anchors to all documented external \links{};
3+
4+
version 2.1.0
5+
- replace several stop errors with messages so the failure to connect to databases (for whatever reason) results in a gracefull ending of the process and to avoid triggering CRAN random error;
6+
17
version 2.0.3
28
- Change interaction with external resources and update documentation;
39

R/MortalityLaw_main.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# -------------------------------------------------------------- #
2-
# Author: Marius D. PASCARIU
3-
# Last Update: Sun Jan 14 22:27:43 2024
4-
# -------------------------------------------------------------- #
1+
# ------------------------------------------------- #
2+
# Author: Marius D. Pascariu
3+
# Last update: Wed Apr 2 08:26:21 2025
4+
# ------------------------------------------------- #
55

66
#' Fit Mortality Laws
77
#'
@@ -32,7 +32,7 @@
3232
#' subject to box constraints for complicated functions. For details check
3333
#' \code{\link{nlminb}};
3434
#' \item Levenberg-Marquardt algorithm: damped least-squares method.
35-
#' For details check \code{\link{nls.lm}}.
35+
#' For details check \code{\link[minpack.lm]{nls.lm}}.
3636
#' }
3737
#' @inheritParams LifeTable
3838
#' @param law The name of the mortality law/model to be used. e.g.

R/availableHMD.R

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# -------------------------------------------------------------- #
2-
# Author: Marius D. PASCARIU
3-
# Last Update: Fri Jul 21 13:58:55 2023
4-
# -------------------------------------------------------------- #
1+
# ------------------------------------------------- #
2+
# Author: Marius D. Pascariu
3+
# Last update: Wed Apr 2 08:29:58 2025
4+
# ------------------------------------------------- #
55

66
#' Check Data Availability in HMD
77
#'
@@ -32,8 +32,7 @@ availableHMD <- function(link = "https://www.mortality.org/Data/DataAvailability
3232
webpage <- read_html(response)
3333

3434
# Extract the table from the webpage
35-
table_data <- webpage |>
36-
html_table(fill = TRUE)
35+
table_data <- html_table(webpage, fill = TRUE)
3736

3837
# from the list of tables extracted above the table of interest is the first one:
3938
if (length(table_data) > 0) {

man/MortalityLaw.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)