Last updated on 2025-12-19 21:49:38 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.7.5 | 17.60 | 158.98 | 176.58 | NOTE | |
| r-devel-linux-x86_64-debian-gcc | 0.7.5 | 12.87 | 113.53 | 126.40 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.7.5 | 33.00 | 250.80 | 283.80 | ERROR | |
| r-devel-linux-x86_64-fedora-gcc | 0.7.5 | 31.00 | 235.90 | 266.90 | ERROR | |
| r-devel-windows-x86_64 | 0.7.5 | 19.00 | 161.00 | 180.00 | NOTE | |
| r-patched-linux-x86_64 | 0.7.5 | 18.61 | 148.36 | 166.97 | NOTE | |
| r-release-linux-x86_64 | 0.7.5 | 17.73 | 150.90 | 168.63 | NOTE | |
| r-release-macos-arm64 | 0.7.5 | NOTE | ||||
| r-release-macos-x86_64 | 0.7.5 | 10.00 | 139.00 | 149.00 | OK | |
| r-release-windows-x86_64 | 0.7.5 | 19.00 | 152.00 | 171.00 | NOTE | |
| r-oldrel-macos-arm64 | 0.7.5 | OK | ||||
| r-oldrel-macos-x86_64 | 0.7.5 | 10.00 | 114.00 | 124.00 | OK | |
| r-oldrel-windows-x86_64 | 0.7.5 | 28.00 | 204.00 | 232.00 | OK |
Version: 0.7.5
Check: DESCRIPTION meta-information
Result: NOTE
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘autoplot.restricted.Rd’ ‘autoplot.riskfactor.Rd’ ‘rating_factors.Rd’
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-windows-x86_64
Version: 0.7.5
Check: examples
Result: ERROR
Running examples in ‘insurancerating-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: rows_per_date
> ### Title: Find active rows per date
> ### Aliases: rows_per_date
>
> ### ** Examples
>
> library(lubridate)
Attaching package: ‘lubridate’
The following objects are masked from ‘package:base’:
date, intersect, setdiff, union
> portfolio <- data.frame(
+ begin1 = ymd(c("2014-01-01", "2014-01-01")),
+ end = ymd(c("2014-03-14", "2014-05-10")),
+ termination = ymd(c("2014-03-14", "2014-05-10")),
+ exposure = c(0.2025, 0.3583),
+ premium = c(125, 150),
+ car_type = c("BMW", "TESLA"))
>
> ## Find active rows on different dates
> dates0 <- data.frame(active_date = seq(ymd("2014-01-01"), ymd("2014-05-01"),
+ by = "months"))
> rows_per_date(portfolio, dates0, df_begin = begin1, df_end = end,
+ dates_date = active_date)
begin1 end termination exposure premium car_type index_df
1 2014-01-01 2014-03-14 2014-03-14 0.2025 125 BMW 1
2 2014-01-01 2014-05-10 2014-05-10 0.3583 150 TESLA 2
3 2014-01-01 2014-03-14 2014-03-14 0.2025 125 BMW 1
4 2014-01-01 2014-05-10 2014-05-10 0.3583 150 TESLA 2
5 2014-01-01 2014-03-14 2014-03-14 0.2025 125 BMW 1
6 2014-01-01 2014-05-10 2014-05-10 0.3583 150 TESLA 2
7 2014-01-01 2014-05-10 2014-05-10 0.3583 150 TESLA 2
8 2014-01-01 2014-05-10 2014-05-10 0.3583 150 TESLA 2
active_date index_dates
1 2014-01-01 1
2 2014-01-01 1
3 2014-02-01 2
4 2014-02-01 2
5 2014-03-01 3
6 2014-03-01 3
7 2014-04-01 4
8 2014-05-01 5
>
> ## With extra identifiers (merge claim date with time interval in portfolio)
> claim_dates <- data.frame(claim_date = ymd("2014-01-01"),
+ car_type = c("BMW", "VOLVO"))
>
> ### Only rows are returned that can be matched
> rows_per_date(portfolio, claim_dates, df_begin = begin1,
+ df_end = end, dates_date = claim_date, car_type)
Error in data.table::foverlaps(df1, lookup2, type = "any", which = FALSE, :
attempt access index -1/4 in VECTOR_ELT
Calls: rows_per_date -> <Anonymous>
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.7.5
Check: examples
Result: ERROR
Running examples in ‘insurancerating-Ex.R’ failed
The error most likely occurred in:
> ### Name: rows_per_date
> ### Title: Find active rows per date
> ### Aliases: rows_per_date
>
> ### ** Examples
>
> library(lubridate)
Attaching package: ‘lubridate’
The following objects are masked from ‘package:base’:
date, intersect, setdiff, union
> portfolio <- data.frame(
+ begin1 = ymd(c("2014-01-01", "2014-01-01")),
+ end = ymd(c("2014-03-14", "2014-05-10")),
+ termination = ymd(c("2014-03-14", "2014-05-10")),
+ exposure = c(0.2025, 0.3583),
+ premium = c(125, 150),
+ car_type = c("BMW", "TESLA"))
>
> ## Find active rows on different dates
> dates0 <- data.frame(active_date = seq(ymd("2014-01-01"), ymd("2014-05-01"),
+ by = "months"))
> rows_per_date(portfolio, dates0, df_begin = begin1, df_end = end,
+ dates_date = active_date)
begin1 end termination exposure premium car_type index_df
1 2014-01-01 2014-03-14 2014-03-14 0.2025 125 BMW 1
2 2014-01-01 2014-05-10 2014-05-10 0.3583 150 TESLA 2
3 2014-01-01 2014-03-14 2014-03-14 0.2025 125 BMW 1
4 2014-01-01 2014-05-10 2014-05-10 0.3583 150 TESLA 2
5 2014-01-01 2014-03-14 2014-03-14 0.2025 125 BMW 1
6 2014-01-01 2014-05-10 2014-05-10 0.3583 150 TESLA 2
7 2014-01-01 2014-05-10 2014-05-10 0.3583 150 TESLA 2
8 2014-01-01 2014-05-10 2014-05-10 0.3583 150 TESLA 2
active_date index_dates
1 2014-01-01 1
2 2014-01-01 1
3 2014-02-01 2
4 2014-02-01 2
5 2014-03-01 3
6 2014-03-01 3
7 2014-04-01 4
8 2014-05-01 5
>
> ## With extra identifiers (merge claim date with time interval in portfolio)
> claim_dates <- data.frame(claim_date = ymd("2014-01-01"),
+ car_type = c("BMW", "VOLVO"))
>
> ### Only rows are returned that can be matched
> rows_per_date(portfolio, claim_dates, df_begin = begin1,
+ df_end = end, dates_date = claim_date, car_type)
Error in data.table::foverlaps(df1, lookup2, type = "any", which = FALSE, :
attempt access index -1/4 in VECTOR_ELT
Calls: rows_per_date -> <Anonymous>
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc