* using log directory 'd:/Rcompile/CRANpkg/local/4.5/Diderot.Rcheck' * using R Under development (unstable) (2024-06-07 r86704 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'Diderot/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'Diderot' version '0.13' * 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 'Diderot' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [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 ... [5s] OK * checking Rd files ... [1s] 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 ... [248s] ERROR Running examples in 'Diderot-Ex.R' failed The error most likely occurred in: > ### Name: compute_BC_ranking > ### Title: Function to compute the Betweenness Centrality ranking. > ### Aliases: compute_BC_ranking 'Betweenness Centrality' > > ### ** Examples > > ## Don't show: > # Generate corpora > corp1<-data.frame(Authors=paste("Author",round(runif(45,1,20)),sep=""),Title=paste("Title",seq(1,45), sep=""), Year=round(runif(45,1990,2018)), References=NA,stringsAsFactors=FALSE) > corp2<-data.frame(Authors=paste("Author",round(runif(65,15,35)),sep=""),Title=paste("Title",seq(46,110), sep=""), Year=round(runif(65,1990,2018)), References=NA, stringsAsFactors=FALSE) > > len1<-length(corp1$Authors) > len2<-length(corp2$Authors) > lnall<-len1+len2 > > for (i in seq(1:lnall)) { + str<-"" + for (j in seq(1:round(runif(1,1,4)))) { + rn<-round(runif(1,1,lnall)) + if (rn > len1) { + str<-sprintf("%s %s. %d. %s;", str, corp2$Authors[rn-len1], corp2$Year[rn-len1], corp2$Title[rn-len1]) + } else { + str<-sprintf("%s %s. %d. %s;", str, corp1$Authors[rn], corp1$Year[rn], corp1$Title[rn]) + } + } + if (i>len1) { + corp2$References[i-len1]<-str + } else corp1$References[i]<-str + } > > # Create joint references > for (i in seq(1:5)) { + corp1<-rbind(corp1, corp2[runif(1,1,len2),]) + corp2<-rbind(corp2, corp1[runif(1,1,len1),]) + } > > # Add duplicate entry > corp1<-rbind(corp1, corp1[1,]) > > tempfi1<-file.path(tempdir(),"corpus1.csv") > tempfi2<-file.path(tempdir(),"corpus2.csv") > write.csv(corp1, tempfi1) > write.csv(corp2, tempfi2) > ## End(Don't show) > > labels<-c("Corpus1","Corpus2") > > # Build a bibliographical dataset from Scopus exports > db<-create_bibliography(corpora_files=c(tempfi1,tempfi2), + labels=labels, keywords=NA) [1] "File D:\\temp\\RtmpAbRzVm/corpus1.csv contains 51 records" [1] "File D:\\temp\\RtmpAbRzVm/corpus2.csv contains 70 records" > ## Don't show: > unlink(c(tempfi1, tempfi2)) > ## End(Don't show) > > # Build graph > gr<-build_graph(db=db,small.year.mismatch=TRUE, attrs=c("Corpus","Year","Authors"), nb.cores=1) Error in makePSOCKcluster(names = spec, ...) : Cluster setup failed. 1 worker of 1 failed to connect. Calls: build_graph -> -> makePSOCKcluster Execution halted * checking PDF version of manual ... [30s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 1 ERROR