- using R Under development (unstable) (2025-12-20 r89211)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘vardpoor/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘vardpoor’ version ‘0.20.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] NOTE
Maintainer: ‘Martins Liberts <martins.liberts@csb.gov.lv>’
Found the following URLs which should use \doi (with the DOI name only):
File ‘lingini2.Rd’:
http://dx.doi.org/10.1007/BF03263549
File ‘varpoord.Rd’:
http://dx.doi.org/10.1007/BF03263549
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘vardpoor’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... NOTE
Problems with news in ‘NEWS.md’:
No news entries found.
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [19s/23s] OK
- checking Rd files ... [1s/1s] NOTE
checkRd: (-1) vardannual.Rd:97: Lost braces
97 | \item{ID_level2}{Optional}{variable for unit ID codes. One dimensional object convertible to one-column \code{data.table} or variable name as character, column number.}
| ^
checkRd: (-1) vardannual.Rd:99: Lost braces
99 | \item{dataset}{Optional}{survey data object convertible to \code{data.table}.}
| ^
checkRd: (-1) vardcrospoor.Rd:122: Lost braces
122 | \item{ind_gr}{Optional}{variable by which divided independently X matrix of the auxiliary variables for the calibration. One dimensional object convertible to one-column \code{data.table} or variable name as character, column number.}
| ^
checkRd: (-1) vardcrospoor.Rd:124: Lost braces
124 | \item{use.estVar}{Logical}{value. If value is \code{TRUE}, then \code{R} function \code{estVar} is used for the estimation of covariance matrix of the residuals. If value is \code{FALSE}, then \code{R} function \code{estVar} is not used for the estimation of covariance matrix of the residuals.}
| ^
checkRd: (-1) vardom_othstr.Rd:69: Lost braces
69 | \item{percentratio}{Positive}{numeric value. All linearized variables are multiplied with \code{percentratio} value, by default - 1.}
| ^
checkRd: (-1) varpoord.Rd:121: Lost braces
121 | \item{month_at_work}{Variable}{for total number of month at work (sum of the number of months spent at full-time work as employee, number of months spent at part-time work as employee, number of months spent at full-time work as self-employed (including family worker), number of months spent at part-time work as self-employed (including family worker)). One dimensional object convertible to one-column \code{data.table} or variable name as character, column number.}
| ^
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking LazyData ... INFO
'LazyData' is specified without a 'data' directory
- checking examples ... [3s/3s] ERROR
Running examples in ‘vardpoor-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: vardannual
> ### Title: Variance estimation for measures of annual net change or annual
> ### for single and multistage stage cluster sampling designs
> ### Aliases: vardannual
> ### Keywords: vardannual
>
> ### ** Examples
>
>
> ### Example
> library("data.table")
Attaching package: ‘data.table’
The following object is masked from ‘package:base’:
%notin%
>
> set.seed(1)
>
> data("eusilc", package = "laeken")
> eusilc1 <- eusilc[1:20, ]
> rm(eusilc)
>
> dataset1 <- data.table(rbind(eusilc1, eusilc1),
+ year = c(rep(2010, nrow(eusilc1)),
+ rep(2011, nrow(eusilc1))))
> rm(eusilc1)
>
> dataset1[, country := "AT"]
> dataset1[, half := .I - 2 * trunc((.I - 1) / 2)]
> dataset1[, quarter := .I - 4 * trunc((.I - 1) / 4)]
> dataset1[age < 0, age := 0]
>
> PSU <- dataset1[, .N, keyby = "db030"][, N := NULL][]
> PSU[, PSU := trunc(runif(.N, 0, 5))]
>
> dataset1 <- merge(dataset1, PSU, all = TRUE, by = "db030")
> rm(PSU)
>
> dataset1[, strata := "XXXX"]
> dataset1[, employed := trunc(runif(.N, 0, 2))]
> dataset1[, unemployed := trunc(runif(.N, 0, 2))]
> dataset1[, labour_force := employed + unemployed]
> dataset1[, id_lv2 := paste0("V", .I)]
>
> vardannual(Y = "employed", H = "strata",
+ PSU = "PSU", w_final = "rb050",
+ ID_level1 = "db030", ID_level2 = "id_lv2",
+ Dom = NULL, Z = NULL, years = "year",
+ subperiods = "half", dataset = dataset1,
+ percentratio = 100, confidence = 0.95,
+ method = "cros")
Warning in melt.data.table(DTagg, id = c(namesperc, gnamesDom), measure = varsYZ, :
measure.vars is a list with length=1, which as long documented should return integer indices in the 'variable' column, but currently returns character column names. To increase consistency in the next release, we plan to change 'variable' to integer, so users who were relying on this behavior should change measure.vars=list('col_name') (output variable is column name now, but will become column index/integer) to measure.vars='col_name' (variable is column name before and after the planned change).
Warning in melt.data.table(DT2, id = namesperc, measure = varsYZ, variable.factor = FALSE) :
measure.vars is a list with length=1, which as long documented should return integer indices in the 'variable' column, but currently returns character column names. To increase consistency in the next release, we plan to change 'variable' to integer, so users who were relying on this behavior should change measure.vars=list('col_name') (output variable is column name now, but will become column index/integer) to measure.vars='col_name' (variable is column name before and after the planned change).
Error in `[.data.table`(DT1, , `:=`(nh, .N), by = c(namesperc2, names_H)) :
attempt access index 6/6 in VECTOR_ELT
Calls: vardannual -> vardcros -> [ -> [.data.table
Execution halted
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [5s/7s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR, 3 NOTEs