CRAN Package Check Results for Maintainer ‘Martin Haringa <mtharinga at gmail.com>’

Last updated on 2025-12-28 03:52:12 CET.

Package ERROR NOTE OK
insurancerating 5 4 4
spatialrisk 2 6 5

Package insurancerating

Current CRAN status: ERROR: 5, NOTE: 4, OK: 4

Additional issues

M1mac

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 Examples with CPU (user + system) or elapsed time > 5s user system elapsed autoplot.univariate 5.634 0.145 7.019 Flavor: r-devel-linux-x86_64-debian-clang

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, r-devel-windows-x86_64

Package spatialrisk

Current CRAN status: ERROR: 2, NOTE: 6, OK: 5

Version: 0.7.3
Check: compiled code
Result: NOTE File ‘spatialrisk/libs/spatialrisk.so’: Found non-API call to R: ‘ATTRIB’ Compiled code should not call non-API entry points in R. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual, and section ‘Moving into C API compliance’ for issues with the use of non-API entry points. 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

Version: 0.7.3
Check: compiled code
Result: NOTE File 'spatialrisk/libs/x64/spatialrisk.dll': Found non-API call to R: 'ATTRIB' Compiled code should not call non-API entry points in R. See 'Writing portable packages' in the 'Writing R Extensions' manual, and section 'Moving into C API compliance' for issues with the use of non-API entry points. Flavor: r-devel-windows-x86_64

Version: 0.7.3
Check: examples
Result: ERROR Running examples in 'spatialrisk-Ex.R' failed The error most likely occurred in: > ### Name: choropleth > ### Title: Create choropleth map > ### Aliases: choropleth > > ### ** Examples > > test <- points_to_polygon(nl_provincie, insurance, sum(amount, na.rm = TRUE)) 109 points are outside any polygon. > choropleth(test) Error in `[.data.table`(d, , `:=`(bbox, do.call(get_bbox, as.list(.SD))), : attempt access index 4/4 in VECTOR_ELT Calls: <Anonymous> -> print.tmap -> step4_plot -> [ -> [.data.table Execution halted Flavor: r-devel-windows-x86_64

Version: 0.7.3
Check: installed package size
Result: NOTE installed size is 6.0Mb sub-directories of 1Mb or more: data 2.6Mb help 1.4Mb libs 1.9Mb Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64

Version: 0.7.3
Check: examples
Result: ERROR Running examples in 'spatialrisk-Ex.R' failed The error most likely occurred in: > ### Name: plot.concentration > ### Title: Automatically create a plot for objects obtained from > ### 'find_highest_concentration()' > ### Aliases: plot.concentration > > ### ** Examples > > x <- find_highest_concentration(Groningen, "amount") Warning: PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1) Warning: [vect] Cannot set SRS to vector: empty srs > plot(x, "concentration") > plot(x, "rasterized") Error in st_transform.sfc(sf::st_as_sfc(sf::st_bbox(x)), crs = 4326) : cannot transform sfc object with missing crs Calls: plot ... leaflet_stars -> createExtent -> <Anonymous> -> st_transform.sfc Execution halted Flavor: r-oldrel-windows-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.