* using log directory 'd:/Rcompile/CRANpkg/local/3.5/vpc.Rcheck' * using R version 3.5.3 (2019-03-11) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'vpc/DESCRIPTION' ... OK * this is package 'vpc' version '1.1.0' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'vpc' can be installed ... OK * 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [10s] OK * checking Rd files ... 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [28s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [41s] ERROR Running 'test-add_sim_index_number.R' [4s] Running 'test-filter_dv.R' [1s] Running 'test-labeller.R' [7s] Running 'test-softwaretype.R' [1s] Running 'test-strat-col-detection.R' [1s] Running 'test-vpc.R' [6s] Running 'test-vpc_cat.R' [3s] Running 'test-vpc_cens.R' [9s] Running 'test-vpc_tte.R' [9s] Running the tests in 'tests/test-add_sim_index_number.R' failed. Complete output: > library(dplyr) Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union > library(vpc) > library(testit) > Sys.setenv("R_TESTS" = "") > > ## Load the theophylline PK dataset > obs <- Theoph > colnames(obs) <- c("id", "wt", "dose", "time", "dv") > obs <- obs %>% + dplyr::group_by(id) %>% + mutate(sex = round(runif(1))) # randomly assign a "sex" covariate > sim <- sim_data(obs, # the design of the dataset + model = function(x) { # the model + vpc:::pk_oral_1cmt (t = x$time, dose=x$dose * x$wt, ka = x$ka, ke = x$ke, cl = x$cl * x$wt) + }, + error = list(additive = 0.1), + theta = c(2.774, 0.0718, .0361), # parameter values + omega_mat = c(0.08854, # specified as lower triangle by default; + 0.02421, 0.02241, # note: assumed that every theta has iiv, set to 0 if no iiv. + 0.008069, 0.008639, 0.02862), + par_names = c("ka", "ke", "cl"), # link the parameters in the model to the thetas/omegas + n = 500) Error: Assigned data `model(tmp_pred)` must be compatible with existing data. x Existing data has 66000 rows. x Assigned data has 132 rows. i Only vectors of size 1 are recycled. Backtrace: x 1. \-vpc::sim_data(...) 2. +-base::`$<-`(...) 3. \-tibble:::`$<-.tbl_df`(...) 4. \-tibble:::tbl_subassign(...) 5. \-tibble:::vectbl_recycle_rhs(...) 6. \-base::tryCatch(...) 7. \-base:::tryCatchList(expr, classes, parentenv, handlers) 8. \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]]) 9. \-value[[3L]](cond) Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR