* using log directory ‘/Users/ripley/R/packages/tests-devel/rpredictit.Rcheck’ * using R Under development (unstable) (2025-04-11 r88138) * using platform: aarch64-apple-darwin24.4.0 * R was compiled by Apple clang version 17.0.0 (clang-1700.0.13.3) GNU Fortran (GCC) 14.2.0 * running under: macOS Sequoia 15.4 * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘rpredictit/DESCRIPTION’ ... OK * this is package ‘rpredictit’ version ‘0.1.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 ‘rpredictit’ can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking ‘build’ 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 ... 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 ... 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘rpredictit-Ex.R’ failed The error most likely occurred in: > ### Name: historical_plot > ### Title: Plot historical contract data obtained from the 'PredictIt' > ### website > ### Aliases: historical_plot > > ### ** Examples > > filename <- "What_will_be_the_balance_of_power_in_Congress_after_the_2020_election.csv" > csv_path <- system.file("extdata", filename, package = "rpredictit") > contract_data <- parse_historical_csv(csv_path) Warning: non-unique values when setting 'row.names': Error in `.rowNamesDF<-`(x, value = value) : duplicate 'row.names' are not allowed Calls: parse_historical_csv ... row.names<- -> row.names<-.data.frame -> .rowNamesDF<- Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... ERROR Error(s) in re-building vignettes: --- re-building ‘rpredictit-vignette.Rmd’ using rmarkdown Quitting from rpredictit-vignette.Rmd:61-66 [unnamed-chunk-5] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `.rowNamesDF<-`: ! duplicate 'row.names' are not allowed --- Backtrace: ▆ 1. └─rpredictit::parse_historical_csv(csv_path) 2. └─base::lapply(...) 3. └─rpredictit (local) FUN(X[[i]], ...) 4. └─base::`rownames<-`(`*tmp*`, value = dat$date) 5. ├─base::`row.names<-`(`*tmp*`, value = value) 6. └─base::`row.names<-.data.frame`(`*tmp*`, value = value) 7. └─base::`.rowNamesDF<-`(x, value = value) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'rpredictit-vignette.Rmd' failed with diagnostics: duplicate 'row.names' are not allowed --- failed re-building ‘rpredictit-vignette.Rmd’ SUMMARY: processing the following file failed: ‘rpredictit-vignette.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs See ‘/Users/ripley/R/packages/tests-devel/rpredictit.Rcheck/00check.log’ for details. 22.46 real 15.50 user 4.61 sys