- using R version 4.4.1 (2024-06-14)
- using platform: x86_64-apple-darwin20
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.3.1
- using session charset: UTF-8
- checking for file ‘IDLFM/DESCRIPTION’ ... OK
- this is package ‘IDLFM’ version ‘1.0.0’
- package encoding: UTF-8
- 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 whether package ‘IDLFM’ can be installed ... [11s/14s] WARNING
Found the following significant warnings:
Note: possible error in 'SVT_SparseArray(dim = c(n_patients, ': unused argument (dim = c(n_patients, n_var, time))
Note: possible error in 'SVT_SparseArray(dim = c(n_patients, ': unused argument (dim = c(n_patients, 1, time))
See the install log for details.
Information on the location(s) of code generating the ‘Note’s can be
obtained by re-running with environment variable R_KEEP_PKG_SOURCE set
to ‘yes’.
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [3s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [3s/3s] OK
- checking whether the package can be unloaded cleanly ... [3s/5s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s/4s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/6s] OK
- checking loading without being on the library search path ... [3s/9s] 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 ... [7s/8s] NOTE
generate_data: possible error in SVT_SparseArray(dim = c(n_patients,
n_var, time)): unused argument (dim = c(n_patients, n_var, time))
generate_data: possible error in SVT_SparseArray(dim = c(n_patients, 1,
time)): unused argument (dim = c(n_patients, 1, time))
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... 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 examples ... [4s/10s] ERROR
Running examples in ‘IDLFM-Ex.R’ failed
The error most likely occurred in:
> ### Name: IDLFM
> ### Title: Individualized Dynamic Latent Factor Model
> ### Aliases: IDLFM
>
> ### ** Examples
>
> library(splines)
> #if (!require("BiocManager", quietly = TRUE))
> #install.packages("BiocManager")
> #BiocManager::install("SparseArray")
> library(SparseArray)
Loading required package: Matrix
Loading required package: BiocGenerics
Attaching package: ‘BiocGenerics’
The following objects are masked from ‘package:stats’:
IQR, mad, sd, var, xtabs
The following objects are masked from ‘package:base’:
Filter, Find, Map, Position, Reduce, anyDuplicated, aperm, append,
as.data.frame, basename, cbind, colnames, dirname, do.call,
duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
pmin.int, rank, rbind, rownames, sapply, setdiff, table, tapply,
union, unique, unsplit, which.max, which.min
Loading required package: MatrixGenerics
Loading required package: matrixStats
Attaching package: ‘MatrixGenerics’
The following objects are masked from ‘package:matrixStats’:
colAlls, colAnyNAs, colAnys, colAvgsPerRowSet, colCollapse,
colCounts, colCummaxs, colCummins, colCumprods, colCumsums,
colDiffs, colIQRDiffs, colIQRs, colLogSumExps, colMadDiffs,
colMads, colMaxs, colMeans2, colMedians, colMins, colOrderStats,
colProds, colQuantiles, colRanges, colRanks, colSdDiffs, colSds,
colSums2, colTabulates, colVarDiffs, colVars, colWeightedMads,
colWeightedMeans, colWeightedMedians, colWeightedSds,
colWeightedVars, rowAlls, rowAnyNAs, rowAnys, rowAvgsPerColSet,
rowCollapse, rowCounts, rowCummaxs, rowCummins, rowCumprods,
rowCumsums, rowDiffs, rowIQRDiffs, rowIQRs, rowLogSumExps,
rowMadDiffs, rowMads, rowMaxs, rowMeans2, rowMedians, rowMins,
rowOrderStats, rowProds, rowQuantiles, rowRanges, rowRanks,
rowSdDiffs, rowSds, rowSums2, rowTabulates, rowVarDiffs, rowVars,
rowWeightedMads, rowWeightedMeans, rowWeightedMedians,
rowWeightedSds, rowWeightedVars
Loading required package: S4Vectors
Loading required package: stats4
Attaching package: ‘S4Vectors’
The following objects are masked from ‘package:Matrix’:
expand, unname
The following object is masked from ‘package:utils’:
findMatches
The following objects are masked from ‘package:base’:
I, expand.grid, unname
Loading required package: S4Arrays
Loading required package: abind
Loading required package: IRanges
Attaching package: ‘S4Arrays’
The following object is masked from ‘package:abind’:
abind
The following object is masked from ‘package:base’:
rowsum
>
> I <- 3
> J <- 5
> time <- 1000
> R <- 3
> k <- 3
> N <- 300
> idx_x <- randomSparseArray(c(I, J, time), density=0.8)
> idx_y_train <- randomSparseArray(c(I, 1, time), density=0.2)
> idx_y_test <- randomSparseArray(c(I, 1, time), density=0.2)
> data <- generate_data(I, J, time, idx_x, idx_y_train, R, k, N)
Error: unable to find an inherited method for function ‘nzcount’ for signature ‘x = "numeric"’
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [4s/10s] OK
Running ‘testthat.R’ [4s/9s]
- checking PDF version of manual ... [7s/8s] OK
- DONE
Status: 1 ERROR, 1 WARNING, 1 NOTE
- using check arguments '--no-clean-on-error '