Skip to content
Snippets Groups Projects
Commit 64a4ef7f authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

V2.0.5: Cleanup for CRAN

parent 980e32d6
No related branches found
No related tags found
No related merge requests found
...@@ -10,3 +10,5 @@ PossibleTables.txt ...@@ -10,3 +10,5 @@ PossibleTables.txt
^doc$ ^doc$
^Meta$ ^Meta$
^inst/extdata/Austria_Population_Observation.csv$ ^inst/extdata/Austria_Population_Observation.csv$
^revdep$
^cran-comments\.md$
Package: MortalityTables Package: MortalityTables
Type: Package Type: Package
Version: 2.0.4 Version: 2.0.5
Date: 2023-10-18 Date: 2023-10-27
Title: A Framework for Various Types of Mortality / Life Tables Title: A Framework for Various Types of Mortality / Life Tables
Authors@R: c(person("Reinhold", "Kainhofer", role=c("aut", "cre"), email="reinhold@kainhofer.com")) Authors@R: c(person("Reinhold", "Kainhofer", role=c("aut", "cre"), email="reinhold@kainhofer.com"))
Author: Reinhold Kainhofer [aut, cre] Author: Reinhold Kainhofer [aut, cre]
...@@ -26,10 +26,11 @@ Suggests: ...@@ -26,10 +26,11 @@ Suggests:
reshape2, reshape2,
rmarkdown rmarkdown
Description: Classes to implement and plot cohort life tables Description: Classes to implement and plot cohort life tables
for actuarial calculations. In particular, birth-year dependent mortality for actuarial calculations. Birth-year dependent cohort mortality
tables using a yearly trend to extrapolate from a base year are implemented, tables using a yearly trend to extrapolate from a base year are implemented,
as well as period life table, cohort life tables using an age shift, and as well as period life table, cohort life tables using an age shift, and
merged life tables. merged life tables. Additionally, several data sets from various countries
are included to provide widely-used tables out of the box.
License: GPL (>= 2) License: GPL (>= 2)
RoxygenNote: 7.2.3 RoxygenNote: 7.2.3
Collate: Collate:
......
...@@ -87,12 +87,23 @@ For further information on how to use the package, see the "Using the MortalityT ...@@ -87,12 +87,23 @@ For further information on how to use the package, see the "Using the MortalityT
## Changelog ## Changelog
* Version 1.0 (30.3.2018): Initial Submission to CRAN * Version 1.0 (30.3.2018):
* Initial Submission to CRAN
* Version 2.0 (27.8.2020): * Version 2.0 (27.8.2020):
* Add various convenience functions to derive tables from data, implement dimensional information * Add various convenience functions to derive tables from data
* implement dimensional information
* extend plotting capabilities (more flexible)
* Add more international tables / datasets
* Version 2.0.1 (4.9.2020): * Version 2.0.1 (4.9.2020):
* Fix performance issues with mortalityTables.list and mortalityTables.load * Fix performance issues with mortalityTables.list and mortalityTables.load
* Version 2.0.2 (12.12.2020): * Version 2.0.2 (12.12.2020):
* Add/fix some sample tables * Add/fix some sample tables
* gracefully handle missing suggested packages * gracefully handle missing suggested packages
* First version of vignette about international tables * First version of vignette about international tables
* Version 2.0.3 (24.8.2021):
* Fix vignette builds
* Version 2.0.4 (19.10.2023):
* Add new Austrian population mortality tables (2020/22)
* Version 2.0.5 (27.10.2023):
* Fix incorrect ages in Austrian population mortality
...@@ -69,8 +69,8 @@ for (jahr in Jahre) { ...@@ -69,8 +69,8 @@ for (jahr in Jahre) {
## Nach Excel und CSV rausschreiben (pro Geschlecht): ## Nach Excel und CSV rausschreiben (pro Geschlecht):
filename.StT.yearlyGradTable = file.path(dirname(filename.StT.yearlyGrad), paste0("Austria_JaehrlicheSterbetafeln_Geglättet_", str_sub(min(Jahre), 1, 4), "-", str_sub(max(Jahre), -4, -1), ".xlsx")) filename.StT.yearlyGradTable = file.path(dirname(filename.StT.yearlyGrad), paste0("Austria_JaehrlicheSterbetafeln_Geglättet_", str_sub(min(Jahre), 1, 4), "-", str_sub(max(Jahre), -4, -1), ".xlsx"))
wb <- createWorkbook() wb <- createWorkbook()
options(openxlsx.borderColour = "#4F80BD") # options(openxlsx.borderColour = "#4F80BD")
options(openxlsx.borderStyle = "thin") # options(openxlsx.borderStyle = "thin")
modifyBaseFont(wb, fontSize = 10, fontName = "Arial Narrow") modifyBaseFont(wb, fontSize = 10, fontName = "Arial Narrow")
for (g in c("M", "F", "U")) { for (g in c("M", "F", "U")) {
...@@ -138,8 +138,8 @@ for (jahr in Jahre) { ...@@ -138,8 +138,8 @@ for (jahr in Jahre) {
## Nach Excel und CSV rausschreiben (pro Geschlecht): ## Nach Excel und CSV rausschreiben (pro Geschlecht):
filename.StT.yearlyTable = file.path(dirname(filename.StT.yearly), paste0("Austria_JaehrlicheSterbetafeln_", min(Jahre), "-", max(Jahre), ".xlsx")) filename.StT.yearlyTable = file.path(dirname(filename.StT.yearly), paste0("Austria_JaehrlicheSterbetafeln_", min(Jahre), "-", max(Jahre), ".xlsx"))
wb <- createWorkbook() wb <- createWorkbook()
options(openxlsx.borderColour = "#4F80BD") # options(openxlsx.borderColour = "#4F80BD")
options(openxlsx.borderStyle = "thin") # options(openxlsx.borderStyle = "thin")
modifyBaseFont(wb, fontSize = 10, fontName = "Arial Narrow") modifyBaseFont(wb, fontSize = 10, fontName = "Arial Narrow")
for (g in c("M", "F", "U")) { for (g in c("M", "F", "U")) {
......
...@@ -28,7 +28,7 @@ if (!all(sapply(required, ...@@ -28,7 +28,7 @@ if (!all(sapply(required,
```{r echo = FALSE} ```{r echo = FALSE}
knitr::opts_chunk$set(collapse = TRUE, comment = "#>") knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
options(tidyverse.quiet = TRUE) # options(tidyverse.quiet = TRUE)
``` ```
The MortalityTables package provides the `mortalityTable` base class and The MortalityTables package provides the `mortalityTable` base class and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment