* using log directory 'd:/Rcompile/CRANpkg/local/3.4/MCI2.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'MCI2/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'MCI2' 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 'MCI2' 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 ... [15s] 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 ... ERROR Running examples in 'MCI2-Ex.R' failed The error most likely occurred in: > ### Name: HaslachDistricts > ### Title: Freiburg-Haslach: districts > ### Aliases: HaslachDistricts > ### Keywords: datasets > > ### ** Examples > > # Compilation of tcmat list from existing datasets: > # (Results from the tcmat.create function) > data(Haslach_tcmatAirline) > # airline distances > data(Haslach_coords_origins) > # Coordinates of origins > data(Haslach_coords_destinations) > # Coordinates of destinationes > > # Component "tc.mode": > Airline_tc.mode <- list() > Airline_tc.mode$tc.type = "airline" > Airline_tc.mode$tc.unit = "km" > Airline_tc.mode$tc.constant = 0 > > # tcmat with airline distances > # Compilation as a list: > tcmat_haslach_airline <- list(tcmat = Haslach_tcmatAirline, + coords_origins = Haslach_coords_origins, + coords_destinations = Haslach_coords_destinations, + tc.mode = Airline_tc.mode) > > Drvtime_tc.mode <- list() > Drvtime_tc.mode$tc.type = "street" > Drvtime_tc.mode$tc.unit = "min" > Drvtime_tc.mode$tc.constant = 0 > > data(Haslach_tcmatDrvtime) > # car driving times > > # tcmat with car driving times > # Compilation as a list: > tcmat_haslach_drvtime <- list(tcmat = Haslach_tcmatDrvtime, + coords_origins = Haslach_coords_origins, + coords_destinations = Haslach_coords_destinations, + tc.mode = Airline_tc.mode) > > data(HaslachSurvey) > # survey raw data (Store choices and purchases) > data(HaslachDistricts) > # IDs and information about customer origins > data(HaslachStores) > # IDs and information about destinations (grocery stores) > > # Preparing raw data (HaslachSurvey) > HaslachSurvey_prepared <- rawdata.prep (cols.below1 = + list(HaslachSurvey$LM1_Text, HaslachSurvey$LM2_Text), + cols.below2 = list(HaslachSurvey$LM1E, HaslachSurvey$LM2E), + cols.keep = HaslachSurvey$WO, + colnames.new = c("LM", "LME", "Wohnort")) > # "WO" and "Wohnort" = origin ID > # "LM1_Text", "LM2_Text" and "LM" = destination IDs (grocery stores) > # "LM1E", "LM2E" and "LME" = grocery store purchases > > # Creating a MCI interaction matrix > # based on raw data of a survey (HaslachSurvey_prepared) > # and a tcmat list object > mcimat_haslach <- mcimat.create(rawdata = HaslachSurvey_prepared, + origins.id = "Wohnort", destinations.id = "LM", "LME", + tcmat = tcmat_haslach_airline, + remOrig = c("SBXXX", "SB613"), corObserved = 0.1, + origvar.data = HaslachDistricts, origvardata.id = "WO", + destvar.data = HaslachStores, destvardata.id = "LM") Error in `[[<-.data.frame`(`*tmp*`, addvar_abs_name, value = 0) : replacement has 1 row, data has 0 Calls: mcimat.create -> [[<- -> [[<-.data.frame Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR